mirror of https://github.com/Hoffelhas/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.pull/15/head
parent
360be44dd7
commit
52aff18d90
|
@ -120,7 +120,7 @@ def main():
|
|||
logging.debug('Updating %s without label', item['content'])
|
||||
item.update(labels=labels)
|
||||
|
||||
api.sync(resource_types=['projects', 'labels', 'items'])
|
||||
api.commit()
|
||||
logging.debug('Sleeping for %d seconds', args.delay)
|
||||
time.sleep(args.delay)
|
||||
|
||||
|
|
Loading…
Reference in New Issue