From 37ef32a964a02fe971d64e1893531456b6c99008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Sun, 24 Oct 2021 23:24:00 +0200 Subject: [PATCH] Ignore agenda items with non-active timestamps. --- doc_manager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: