WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit 51d3245703 - Show all commits

View file

@ -251,7 +251,10 @@ class Moderation(AuroraGuildModel):
end_timestamp = None
if not expired:
expired = bool(timestamp > end_timestamp)
if end_timestamp:
expired = bool(timestamp > end_timestamp)
else:
expired = False
if reason == "NULL":
reason = None