Fix issue with poll rendering

main
Thomas Sileo 2022-07-31 18:18:42 +02:00
parent b557035eac
commit 4f0d819a41
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class Object:
@property @property
def is_poll_ended(self) -> bool: 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 now() > parse_isoformat(self.ap_object["endTime"])
return False return False