fix(moderation): pylint fixes
All checks were successful
Pylint / Pylint (push) Successful in 1m11s

This commit is contained in:
SeaswimmerTheFsh 2023-10-04 09:15:49 -04:00
parent df7c807316
commit 8a27886e4b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -54,7 +54,7 @@ class Moderation(commands.Cog):
cursor = database.cursor()
try:
cursor.execute(f"SELECT * FROM `{guild.id}_moderation`")
logging.info(f"MySQL Table exists for server {guild.name} ({guild.id})")
logging.info("MySQL Table exists for server %s (%s)", guild.name, guild.id)
except mysql.connector.errors.ProgrammingError:
query = f"""
CREATE TABLE `{guild.id}_moderation` (
@ -81,7 +81,7 @@ class Moderation(commands.Cog):
cursor.execute(insert_query, insert_values)
database.commit()
database.close()
logging.info(f"MySQL Table created for {guild.name} ({guild.id})\n{guild.id}_moderation")
logging.info("MySQL Table created for %s (%s)\n%s_moderation", guild.name, guild.id, guild.id)
else:
database.close()
return