From 4f0d819a41b856d069c6489d698257fa342dce1e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 31 Jul 2022 18:18:42 +0200 Subject: [PATCH] Fix issue with poll rendering --- app/ap_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ap_object.py b/app/ap_object.py index ce9a41d..6b5f835 100644 --- a/app/ap_object.py +++ b/app/ap_object.py @@ -196,7 +196,7 @@ class Object: @property def is_poll_ended(self) -> bool: - if "endTime" in self.ap_object: + if self.ap_object.get("endTime"): return now() > parse_isoformat(self.ap_object["endTime"]) return False