WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -174,14 +174,13 @@ class Moderation(AuroraGuildModel):
timestamp = datetime.fromtimestamp(timestamp)
if duration != "NULL" and duration is not None:
end_timedelta = timestamp + duration
end_timestamp = int(end_timedelta.timestamp())
end_timestamp = timestamp + duration
else:
duration = None
end_timestamp = None
if not expired:
if timestamp.timestamp() > end_timestamp:
if timestamp > end_timestamp:
expired = True
else:
expired = False