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
1 changed files with 5 additions and 1 deletions

View File

@ -90,7 +90,11 @@ class DocumentManager:
for hl in doc.getAllHeadlines():
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):
items_in_agenda.append(hl)
elif (hl.scheduled.time.to_datetime() < now) and hl.is_todo: