Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Only tag non-completed tasks in serial lists, resolves #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nikdoof committed Aug 4, 2016
1 parent 52ad1ea commit fa757f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nextaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ def remove_label(item, label):
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
Expand Down

0 comments on commit fa757f3

Please sign in to comment.