fix(aurora): fixed duration being a timedelta in case_safe
This commit is contained in:
parent
b7b6dc2f2e
commit
1e865643a0
1 changed files with 1 additions and 0 deletions
|
@ -228,6 +228,7 @@ class Moderation(AuroraGuildModel):
|
||||||
|
|
||||||
case_safe = case.copy()
|
case_safe = case.copy()
|
||||||
case_safe.pop("guild_id")
|
case_safe.pop("guild_id")
|
||||||
|
case_safe["duration"] = str(case_safe["duration"]) if case_safe["duration"] else None
|
||||||
case_safe["timestamp"] = case_safe["timestamp"].timestamp()
|
case_safe["timestamp"] = case_safe["timestamp"].timestamp()
|
||||||
case_safe["end_timestamp"] = case_safe["end_timestamp"].timestamp() if case_safe["end_timestamp"] else None
|
case_safe["end_timestamp"] = case_safe["end_timestamp"].timestamp() if case_safe["end_timestamp"] else None
|
||||||
case_safe["changes"] = dumps(case_safe["changes"])
|
case_safe["changes"] = dumps(case_safe["changes"])
|
||||||
|
|
Loading…
Reference in a new issue