forked from mirrors/autodoist
Fix committing to Todoist
Without calling commit(), the state is never updated server side. Replace the final sync with commit() to make NextAction work correctly.master
parent
360be44dd7
commit
52aff18d90
|
@ -120,7 +120,7 @@ def main():
|
||||||
logging.debug('Updating %s without label', item['content'])
|
logging.debug('Updating %s without label', item['content'])
|
||||||
item.update(labels=labels)
|
item.update(labels=labels)
|
||||||
|
|
||||||
api.sync(resource_types=['projects', 'labels', 'items'])
|
api.commit()
|
||||||
logging.debug('Sleeping for %d seconds', args.delay)
|
logging.debug('Sleeping for %d seconds', args.delay)
|
||||||
time.sleep(args.delay)
|
time.sleep(args.delay)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue