You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another issue I've encountered, which might be related to the first one, is that when I'm adding a time entry for an active project missing from the toggl projects ls listing, using the project name results in an error:
toggl add 09AM 1m 'test description' --project=PROJECT1 --billable
Usage: toggl add [OPTIONS] START STOP DESCR
Try 'toggl add --help' for help.
Error: Invalid value for '--project' / '-o': Unknown Project under specification 'PROJECT1'!
However, when I use the project ID instead of the project name, the command works fine.
My temporary fix
Since I only work with active projects, I was able to fix both issues by adding the ?active=true filter to the WorkspaceTogglSet.build_list_url method in a toggl/api/base.py:
Hello, thanks for the cool app!
Incomplete Listing of Projects
I have about 200 projects in my Toggl workspace, most of which are archived, with only 22 currently active. When I run
toggl projects ls
, I only see 151 of them, and some of the active ones are missing. This is probably because Toggl returns a maximum of 151 projects if the per_page query parameter is not specified.Issues Adding a Time Entry
Another issue I've encountered, which might be related to the first one, is that when I'm adding a time entry for an active project missing from the
toggl projects ls
listing, using the project name results in an error:However, when I use the project ID instead of the project name, the command works fine.
My temporary fix
Since I only work with active projects, I was able to fix both issues by adding the
?active=true
filter to theWorkspaceTogglSet.build_list_url
method in a toggl/api/base.py:Perhaps someone could come up with a more general solution that allows retrieving a full list of both archived and active projects.
The text was updated successfully, but these errors were encountered: