mirror of
https://github.com/nikdoof/NextAction.git
synced 2025-12-20 22:09:24 +00:00
Only tag non-completed tasks in serial lists, resolves #1
This commit is contained in:
@@ -142,9 +142,11 @@ def main():
|
||||
if item_type or len(child_items) > 0:
|
||||
# Process serial tagged items
|
||||
if item_type == 'serial':
|
||||
for idx, child_item in enumerate(child_items):
|
||||
if idx == 0:
|
||||
for child_item in child_items:
|
||||
first_found = False
|
||||
if child_item['checked'] == 0 and not first_found:
|
||||
add_label(child_item, label_id)
|
||||
first_found = True
|
||||
else:
|
||||
remove_label(child_item, label_id)
|
||||
# Process parallel tagged items or untagged parents
|
||||
|
||||
Reference in New Issue
Block a user