Ignore agenda items with non-active timestamps.
This commit is contained in:
parent
a8e667dbce
commit
37ef32a964
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user