From e74923c3577a60db0d7d673168d63798d77c772f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 17 Dec 2023 12:58:15 -0500 Subject: [PATCH] fix(moderation): fixed broken sql query --- moderation/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/database.py b/moderation/database.py index c601dcd..df47ab7 100644 --- a/moderation/database.py +++ b/moderation/database.py @@ -163,7 +163,7 @@ async def mysql_log( moderation_id = await get_next_case_number(guild_id=guild_id, cursor=cursor) - sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" + sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" val = ( moderation_id, timestamp,