Fix issue with poll rendering

This commit is contained in:
Thomas Sileo 2022-07-31 18:18:42 +02:00
parent b557035eac
commit 4f0d819a41

View file

@ -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