mirror of https://github.com/Hoffelhas/autodoist
Update autodoist.py
parent
c7baa68e03
commit
e4ee51b20d
|
@ -20,7 +20,7 @@ import re
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
||||||
#chunking
|
#chunking code to meet API limits of 100 calls per request
|
||||||
|
|
||||||
def sync_in_chunks(api):
|
def sync_in_chunks(api):
|
||||||
chunk_size = 99 # Maximum commands per request
|
chunk_size = 99 # Maximum commands per request
|
||||||
|
@ -1531,8 +1531,6 @@ def main():
|
||||||
overview_task_labels)
|
overview_task_labels)
|
||||||
|
|
||||||
# Sync all queued up changes
|
# Sync all queued up changes
|
||||||
# if api.queue:
|
|
||||||
# sync(api)
|
|
||||||
if api.queue:
|
if api.queue:
|
||||||
sync_in_chunks(api)
|
sync_in_chunks(api)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue