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,7 +1523,8 @@ def main():
|
||||||
overview_task_labels)
|
overview_task_labels)
|
||||||
|
|
||||||
# Sync all queued up changes
|
# Sync all queued up changes
|
||||||
sync(api)
|
if api.queue:
|
||||||
|
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