fix(moderation): use tuples in cursor.execute arguments
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
This commit is contained in:
parent
604d03ac28
commit
3d4dc392cd
1 changed files with 3 additions and 3 deletions
|
@ -149,11 +149,11 @@ class Moderation(commands.Cog):
|
||||||
"""
|
"""
|
||||||
cursor.execute(query)
|
cursor.execute(query)
|
||||||
index_query_1 = "CREATE INDEX idx_target_id ON moderation_%s(target_id(25));"
|
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));"
|
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);"
|
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_query = f"""
|
||||||
INSERT INTO `moderation_{guild.id}`
|
INSERT INTO `moderation_{guild.id}`
|
||||||
(moderation_id, timestamp, moderation_type, target_id, moderator_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired)
|
(moderation_id, timestamp, moderation_type, target_id, moderator_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired)
|
||||||
|
|
Loading…
Reference in a new issue