Don't stop processing sections if task is past hide_future

If the top task in a section has a due date past hide_future,
that task and the tasks after it do not get a Next tag. Let's
fix this case by ignoring tasks with a due date past
hide_future properly.

Signed-off-by: Christopher Obbard <chris@64studio.com>
pull/22/head
Christopher Obbard 2022-04-14 22:19:28 +01:00
parent e1609f441e
commit a4ced44e22
1 changed files with 4 additions and 3 deletions

View File

@ -809,9 +809,10 @@ def autodoist_magic(args, api, label_id, regen_labels_id):
future_diff = (
due_date - datetime.today()).days
if future_diff >= args.hide_future:
remove_label(
item, label_id, overview_item_ids, overview_item_labels)
continue
if remove_label(
item, label_id, overview_item_ids, overview_item_labels):
first_found_section = False
continue
except:
# Hide-future not set, skip
continue