Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/toggl_api_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_toggl_entries

# if user has setup workspace, use entries for those workspaces. If no workspace is setup, use all
get_latest_toggl_entries_api_response('time_entries').map { |entry|
if entry["description"] =~ /\s*#(\d+)\s*/ && !entry["stop"].nil? && !entry["stop"].empty? &&
if entry["description"] =~ /\s*#(\d+)\s*/ && entry["duration"] > 0 &&
(@toggl_workspace.blank? || workspace_ids.include?(entry['wid']))

TogglAPIEntry.new(entry["id"],
Expand Down