agladky / todoist-overdue-alfred

Alfred workflow to move all overdue tasks to today in Todoist
5 stars 1 forks source link

Doesn't seem to move overdue to today. #2

Open noisufnoc opened 6 years ago

noisufnoc commented 6 years ago

I opened in debug console, says that my tasks are being moved but they actually don't move in todoist.

[2018-03-12 15:25:21][input.keyword] Processing output of 'utility.argument' with arg '' [2018-03-12 15:25:21][utility.argument] Processing output of 'action.script' with arg '' [2018-03-12 15:25:22][action.script] Processing output of 'output.notification' with arg 'Tasks successfully moved'

Thoughts?

agladky commented 6 years ago

Try to regenerate token in todoist and replace it in the workflow.

noisufnoc commented 6 years ago

no such luck, I just tried a new token

agladky commented 6 years ago

Ok, I updated some dependencies, this may help. New workflow: https://github.com/agladky/todoist-overdue-alfred/blob/master/Todoist%20overdue.alfredworkflow

noisufnoc commented 6 years ago

I tried the new version, looks like it's complaining about urllib3

[2018-03-14 10:23:24][input.keyword] Processing output of 'utility.argument' with arg '' [2018-03-14 10:23:24][utility.argument] Processing output of 'action.script' with arg '' [2018-03-14 10:23:25][ERROR: action.script] Traceback (most recent call last): File "todoist_overdue.py", line 13, in from todoist import TodoistAPI File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/todoist/init.py", line 1, in from .api import TodoistAPI File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/todoist/api.py", line 4, in import requests File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/requests/init.py", line 43, in import urllib3 ImportError: No module named urllib3 [2018-03-14 10:23:25][action.script] Processing output of 'output.notification' with arg ''

agladky commented 6 years ago

Sorry for that, I fixed it. Try to download again, please.

noisufnoc commented 6 years ago

[2018-03-15 10:11:59][input.keyword] Processing output of 'utility.argument' with arg '' [2018-03-15 10:11:59][utility.argument] Processing output of 'action.script' with arg '' [2018-03-15 10:11:59][ERROR: action.script] Traceback (most recent call last): File "todoist_overdue.py", line 13, in from todoist import TodoistAPI File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/todoist/init.py", line 1, in from .api import TodoistAPI File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/todoist/api.py", line 4, in import requests File "/Users/noisufnoc/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.82048476-481D-43EC-8AEA-6515019BF74A/lib/requests/init.py", line 44, in import chardet ImportError: No module named chardet [2018-03-15 10:11:59][action.script] Processing output of 'output.notification' with arg ''

agladky commented 6 years ago

I think I need to rebuild the workflow after my vacation. For now, try to download for last time. I added all necessary libraries.

noisufnoc commented 6 years ago

Thank you for your help. I tried the latest version, no errors but no tasks were moved.

noisufnoc commented 6 years ago

So I grabbed your python code and started walking through it, it seems that I dont get any overdue items at this point:

https://github.com/agladky/todoist-overdue-alfred/blob/master/todoist-overdue-alfred/todoist_overdue.py#L21

I'm not sure if it's my account or what. Right now I have many items in the todoist UI as 'overdue' but when I query the api for 'overdue' I get an empty list.