fix(aurora): fixed index creation
All checks were successful
Pylint / Pylint (3.11) (push) Successful in 42s

This commit is contained in:
Seaswimmer 2023-12-28 05:11:32 -05:00
parent b1edf79409
commit beb4e3909b
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -56,14 +56,14 @@ async def create_guild_table(guild: Guild):
"""
cursor.execute(query)
index_query_1 = "CREATE INDEX idx_target_id ON {}(target_id);"
cursor.execute(index_query_1.format(guild.id))
index_query_1 = f"CREATE INDEX idx_target_id ON {guild.id}(target_id);"
cursor.execute(index_query_1)
index_query_2 = "CREATE INDEX idx_moderator_id ON {}(moderator_id);"
cursor.execute(index_query_2.format(guild.id))
index_query_2 = f"CREATE INDEX idx_moderator_id ON {guild.id}(moderator_id);"
cursor.execute(index_query_2)
index_query_3 = "CREATE INDEX idx_moderation_id ON {}(moderation_id);"
cursor.execute(index_query_3.format(guild.id))
index_query_3 = f"CREATE INDEX idx_moderation_id ON {guild.id}(moderation_id);"
cursor.execute(index_query_3)
insert_query = f"""
INSERT INTO `{guild.id}`