Hey @giovanni this is great! I'm a long time Alfred user dipping my toes in todoist and this workflow will be very helpful.
I'm not sure why but upon initial installation Todoist did not detect any of my today and / or late tasks. However, after I moved a few tasks around by changing due dates, it started llisting my today tasks and overdue tasks.
However, it won't list all tasks (!3 will just revert to default search for the string "!3")
Here is the debug log from Alfred:
[08:03:21.791] Logging Started...
[08:03:27.802] AlfreDo[Script Filter] Queuing argument '(null)'
[08:03:27.986] AlfreDo[Script Filter] Script with argv '(null)' finished
[08:03:27.992] ERROR: AlfreDo[Script Filter] Code 1: 0 days from last update
[]
[]
[]
Traceback (most recent call last):
File "/Users/paul/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.3922CD67-5DB7-48BC-ACE9-AB1517287EF6/alfredo-query.py", line 421, in <module>
main ()
File "/Users/paul/Dropbox/Alfred.alfredpreferences/workflows/user.workflow.3922CD67-5DB7-48BC-ACE9-AB1517287EF6/alfredo-query.py", line 331, in main
dueDate = datetime.strptime(task ['due']['date'], "%Y-%m-%dT%H:%M:%S")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/_strptime.py", line 352, in _strptime
raise ValueError("unconverted data remains: %s" %
ValueError: unconverted data remains: Z
I'm not sure what's going on with the Code 1 : 0 days from last update?
Thanks for your help!