Fix issue with poll rendering
This commit is contained in:
parent
b557035eac
commit
4f0d819a41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue