From f1fbec1fd516ba96a0552d24ef288f87e198b481 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 30 Dec 2023 04:13:15 -0500 Subject: [PATCH] fix(aurora): fixed update query for `/edit` if parsed_time is given --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index ae1da8d..8fa72ee 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -919,7 +919,7 @@ class Aurora(commands.Cog): if parsed_time: update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ?, duration = ?, end_timestamp = ? WHERE moderation_id = ?" - cursor.execute(update_query, (json.dumps(changes), reason, parsed_time, end_timestamp, case)) + cursor.execute(update_query, (json.dumps(changes), reason, convert_timedelta_to_str(parsed_time), end_timestamp, case)) else: update_query = f"UPDATE `moderation_{interaction.guild.id}` SET changes = ?, reason = ? WHERE moderation_id = ?" cursor.execute(update_query, (json.dumps(changes), reason, case))