mirror of https://github.com/Hoffelhas/autodoist
Only sync changes if api.queue has content. Else we'll time out after 45 minutes of no changes.
parent
cf57687068
commit
a66905e88c
|
@ -1523,6 +1523,7 @@ def main():
|
||||||
overview_task_labels)
|
overview_task_labels)
|
||||||
|
|
||||||
# Sync all queued up changes
|
# Sync all queued up changes
|
||||||
|
if api.queue:
|
||||||
sync(api)
|
sync(api)
|
||||||
|
|
||||||
num_changes = len(api.queue)+len(api.overview_updated_ids)
|
num_changes = len(api.queue)+len(api.overview_updated_ids)
|
||||||
|
|
Loading…
Reference in New Issue