Update autodoist.py

Fixed bug in which checked children were still processed in the sequential loop
v1.0.1
Hoffelhas 2020-05-13 17:07:20 +02:00 committed by GitHub
parent 35933127d8
commit 50e7caa7fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -169,8 +169,9 @@ def main():
for item in items:
# Check for child_items
child_items = list(filter(lambda x: x['parent_id'] == item['id'], items))
# Determine which child_items exist that have not been checked yet
non_checked_items = list(filter(lambda x: x['checked'] == 0, items))
child_items = list(filter(lambda x: x['parent_id'] == item['id'], non_checked_items))
if not args.recurring:
try: