From 3dc28c4ff824d55c63447b03bece7af05ce24bb5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 28 Dec 2023 05:24:52 -0500 Subject: [PATCH] fix(aurora): fixed create_guild_table method --- aurora/utilities/database.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aurora/utilities/database.py b/aurora/utilities/database.py index 32bd116..0c4c1f0 100644 --- a/aurora/utilities/database.py +++ b/aurora/utilities/database.py @@ -56,14 +56,14 @@ async def create_guild_table(guild: Guild): """ cursor.execute(query) - index_query_1 = "CREATE INDEX idx_target_id ON moderation_{}(target_id);" - cursor.execute(index_query_1.format(guild.id)) + index_query_1 = f"CREATE INDEX idx_target_id ON moderation_{guild.id}(target_id);" + cursor.execute(index_query_1) - index_query_2 = "CREATE INDEX idx_moderator_id ON moderation_{}(moderator_id);" - cursor.execute(index_query_2.format(guild.id)) + index_query_2 = f"CREATE INDEX idx_moderator_id ON moderation_{guild.id}(moderator_id);" + cursor.execute(index_query_2) - index_query_3 = "CREATE INDEX idx_moderation_id ON moderation_{}(moderation_id);" - cursor.execute(index_query_3.format(guild.id)) + index_query_3 = f"CREATE INDEX idx_moderation_id ON moderation_{guild.id}(moderation_id);" + cursor.execute(index_query_3) insert_query = f""" INSERT INTO `moderation_{guild.id}`