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
Andrew Williams 2015-09-01 18:00:45 +01:00
parent 360be44dd7
commit 52aff18d90
1 changed files with 1 additions and 1 deletions

View File

@ -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)