WIP: Moderation type registry #26

Closed
cswimr wants to merge 146 commits from aurora-3rd-party into main
Showing only changes of commit 51d3245703 - Show all commits

View file

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