Only sync changes if api.queue has content. Else we'll time out after 45 minutes of no changes.

dev^2
Hoffelhas 2023-01-15 11:02:26 +01:00
parent cf57687068
commit a66905e88c
1 changed files with 2 additions and 1 deletions

View File

@ -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)