mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue