mirror of https://github.com/Hoffelhas/autodoist
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
parent
e1609f441e
commit
a4ced44e22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue