Ignore agenda items with non-active timestamps.

This commit is contained in:
Sergio Martínez Portela 2021-10-24 23:24:00 +02:00
parent a8e667dbce
commit 37ef32a964

View File

@ -90,7 +90,11 @@ class DocumentManager:
for hl in doc.getAllHeadlines(): for hl in doc.getAllHeadlines():
headline_count += 1 headline_count += 1
if hl.scheduled and isinstance(hl.scheduled, OrgTime): if (
hl.scheduled
and isinstance(hl.scheduled, OrgTime)
and hl.scheduled.time.active
):
if is_today(hl.scheduled): if is_today(hl.scheduled):
items_in_agenda.append(hl) items_in_agenda.append(hl)
elif (hl.scheduled.time.to_datetime() < now) and hl.is_todo: elif (hl.scheduled.time.to_datetime() < now) and hl.is_todo: