fix(aurora): convert floats to ints
This commit is contained in:
parent
a86348fae3
commit
e591b2c4a5
1 changed files with 2 additions and 2 deletions
|
@ -229,8 +229,8 @@ class Moderation(AuroraGuildModel):
|
||||||
|
|
||||||
case_safe = case.copy()
|
case_safe = case.copy()
|
||||||
case_safe.pop("guild_id")
|
case_safe.pop("guild_id")
|
||||||
case_safe["timestamp"] = case_safe["timestamp"].timestamp()
|
case_safe["timestamp"] = int(case_safe["timestamp"].timestamp())
|
||||||
case_safe["end_timestamp"] = case_safe["end_timestamp"].timestamp() if case_safe["end_timestamp"] else None
|
case_safe["end_timestamp"] = int(case_safe["end_timestamp"].timestamp()) if case_safe["end_timestamp"] else None
|
||||||
case_safe["duration"] = str(case_safe["duration"])
|
case_safe["duration"] = str(case_safe["duration"])
|
||||||
case_safe["resolved"] = int(case_safe["resolved"])
|
case_safe["resolved"] = int(case_safe["resolved"])
|
||||||
case_safe["expired"] = int(case_safe["expired"])
|
case_safe["expired"] = int(case_safe["expired"])
|
||||||
|
|
Loading…
Reference in a new issue