mirror of
https://github.com/nikdoof/NextAction.git
synced 2025-12-13 17:52:17 +00:00
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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user