From 52aff18d90f2fe460d71395c0e5fc03ca5578be3 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 1 Sep 2015 18:00:45 +0100 Subject: [PATCH] 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. --- nextaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextaction.py b/nextaction.py index b9277f4..4d84423 100755 --- a/nextaction.py +++ b/nextaction.py @@ -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)