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.
This commit is contained in:
2015-09-01 18:00:45 +01:00
parent 360be44dd7
commit 52aff18d90

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)