This commit is contained in:
parent
df7c807316
commit
8a27886e4b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue