diff --git a/doc_manager.py b/doc_manager.py index 32d5a99..1777b9c 100644 --- a/doc_manager.py +++ b/doc_manager.py @@ -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: