mirror of https://github.com/Hoffelhas/autodoist
Only tag non-completed tasks in serial lists, resolves #1
parent
52ad1ea908
commit
fa757f33d1
|
@ -142,9 +142,11 @@ def main():
|
||||||
if item_type or len(child_items) > 0:
|
if item_type or len(child_items) > 0:
|
||||||
# Process serial tagged items
|
# Process serial tagged items
|
||||||
if item_type == 'serial':
|
if item_type == 'serial':
|
||||||
for idx, child_item in enumerate(child_items):
|
for child_item in child_items:
|
||||||
if idx == 0:
|
first_found = False
|
||||||
|
if child_item['checked'] == 0 and not first_found:
|
||||||
add_label(child_item, label_id)
|
add_label(child_item, label_id)
|
||||||
|
first_found = True
|
||||||
else:
|
else:
|
||||||
remove_label(child_item, label_id)
|
remove_label(child_item, label_id)
|
||||||
# Process parallel tagged items or untagged parents
|
# Process parallel tagged items or untagged parents
|
||||||
|
|
Loading…
Reference in New Issue