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))