mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Taskwarrior doesn't like status=wating, don't send it.
This commit is contained in:
parent
74da3bee81
commit
69e72daff4
@ -382,8 +382,11 @@ def _ti_update_task(tw_task, ti_project_list):
|
||||
elif ti_task['item']['checked'] == 0 and \
|
||||
tw_task['status'] == 'completed':
|
||||
todoist.items.complete(tid)
|
||||
elif tw_task['status'] == 'waiting':
|
||||
# taskwarrior doesn't like status=waiting
|
||||
del(tw_task['status'])
|
||||
|
||||
tw_task['todoist_sync'] = datetime.datetime.now()
|
||||
tw_task['todoist_sync'] = datetime.datetime.now().isoformat()
|
||||
taskwarrior.task_update(tw_task)
|
||||
else:
|
||||
# Always set latest sync time so no more sync accures
|
||||
@ -391,7 +394,11 @@ def _ti_update_task(tw_task, ti_project_list):
|
||||
log.info(f'TI updating (todoist_id={tid})...', nl=False)
|
||||
log.success('OK')
|
||||
|
||||
tw_task['todoist_sync'] = datetime.datetime.now()
|
||||
# taskwarrior doesn't like status=waiting
|
||||
if tw_task['status'] == 'waiting':
|
||||
del(tw_task['status'])
|
||||
|
||||
tw_task['todoist_sync'] = datetime.datetime.now().isoformat()
|
||||
taskwarrior.task_update(tw_task)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user