fix(aurora): fixed a typeerror in Moderation.log()
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 38s

This commit is contained in:
Seaswimmer 2024-05-24 03:51:43 -04:00
parent 0411e3dab7
commit 51d3245703
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

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