fix(moderation): fixed broken sql query
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 48s

This commit is contained in:
Seaswimmer 2023-12-17 12:58:15 -05:00
parent 9c6cbc160b
commit e74923c357
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -163,7 +163,7 @@ async def mysql_log(
moderation_id = await get_next_case_number(guild_id=guild_id, cursor=cursor) moderation_id = await get_next_case_number(guild_id=guild_id, cursor=cursor)
sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
val = ( val = (
moderation_id, moderation_id,
timestamp, timestamp,