From 1e865643a03487d065ceebf03ced17a9971672c8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 6 May 2024 14:45:04 -0400 Subject: [PATCH] fix(aurora): fixed duration being a timedelta in case_safe --- aurora/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aurora/models.py b/aurora/models.py index 4792f4a..81963a0 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -228,6 +228,7 @@ class Moderation(AuroraGuildModel): case_safe = case.copy() 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["end_timestamp"] = case_safe["end_timestamp"].timestamp() if case_safe["end_timestamp"] else None case_safe["changes"] = dumps(case_safe["changes"])