From a66905e88c570738b9e3681c7c94a66f0313e9b0 Mon Sep 17 00:00:00 2001 From: Hoffelhas Date: Sun, 15 Jan 2023 11:02:26 +0100 Subject: [PATCH] Only sync changes if api.queue has content. Else we'll time out after 45 minutes of no changes. --- autodoist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autodoist.py b/autodoist.py index 622d5e1..0d33aa8 100644 --- a/autodoist.py +++ b/autodoist.py @@ -1523,7 +1523,8 @@ def main(): overview_task_labels) # Sync all queued up changes - sync(api) + if api.queue: + sync(api) num_changes = len(api.queue)+len(api.overview_updated_ids)