mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2025-08-06 15:42:41 +02:00
Merge branch 'sync'
This commit is contained in:
@@ -384,8 +384,11 @@ def _ti_update_task(tw_task, ti_project_list):
|
|||||||
elif ti_task['item']['checked'] == 0 and \
|
elif ti_task['item']['checked'] == 0 and \
|
||||||
tw_task['status'] == 'completed':
|
tw_task['status'] == 'completed':
|
||||||
todoist.items.complete(tid)
|
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)
|
taskwarrior.task_update(tw_task)
|
||||||
else:
|
else:
|
||||||
# Always set latest sync time so no more sync accures
|
# Always set latest sync time so no more sync accures
|
||||||
@@ -393,7 +396,11 @@ def _ti_update_task(tw_task, ti_project_list):
|
|||||||
log.info(f'TI updating (todoist_id={tid})...', nl=False)
|
log.info(f'TI updating (todoist_id={tid})...', nl=False)
|
||||||
log.success('OK')
|
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)
|
taskwarrior.task_update(tw_task)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user