From 3d4dc392cddd08bab3da756c47843d4c74c55231 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 6 Oct 2023 16:18:15 -0400 Subject: [PATCH] fix(moderation): use tuples in cursor.execute arguments --- moderation/moderation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 14ecf90..23a9d7e 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -149,11 +149,11 @@ class Moderation(commands.Cog): """ cursor.execute(query) index_query_1 = "CREATE INDEX idx_target_id ON moderation_%s(target_id(25));" - cursor.execute(index_query_1, (guild.id)) + cursor.execute(index_query_1, (guild.id,)) index_query_2 = "CREATE INDEX idx_moderator_id ON moderation_%s(moderator_id(25));" - cursor.execute(index_query_2, (guild.id)) + cursor.execute(index_query_2, (guild.id,)) index_query_3 = "CREATE INDEX idx_moderation_id ON moderation_%s(moderation_id);" - cursor.execute(index_query_3, (guild.id)) + cursor.execute(index_query_3, (guild.id,)) insert_query = f""" INSERT INTO `moderation_{guild.id}` (moderation_id, timestamp, moderation_type, target_id, moderator_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired)