fix(moderation): fixed mysql_log

This commit is contained in:
Seaswimmer 2023-12-15 21:33:26 -05:00
parent 0c28d362be
commit e562ef2742
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -345,7 +345,7 @@ class Moderation(commands.Cog):
moderation_id = await self.get_next_case_number(guild_id=guild_id, cursor=cursor)
sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
val = (moderation_id, timestamp, moderation_type, target_id, author_id, role_id, duration, end_timestamp, {reason}, int(resolved), resolved_by, resolved_reason, expired, json.dumps(changes))
val = (moderation_id, timestamp, moderation_type, target_id, author_id, role_id, duration, end_timestamp, reason, int(resolved), resolved_by, resolved_reason, expired, json.dumps(changes))
cursor.execute(sql, val)
cursor.close()