Fix issue with poll rendering
parent
b557035eac
commit
4f0d819a41
|
@ -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 New Issue