Update autodoist.py

Fixed bug in which checked children were still processed in the sequential loop
pull/15/head
Hoffelhas 2020-05-13 17:07:20 +02:00
parent f021a84bf7
commit a106464764
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: