fix(moderation): fixed resolve_query being broken
All checks were successful
Pylint / Pylint (push) Successful in 1m14s

This commit is contained in:
Seaswimmer 2023-10-06 10:49:05 -04:00
parent fb2e99bbcd
commit d55d37954d
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -482,7 +482,7 @@ class Moderation(commands.Cog):
await interaction.guild.unban(user, reason=f"Case #{case_number} resolved by {interaction.user.id}")
except discord.NotFound:
pass
resolve_query = f"UPDATE `{db}`.`moderation_{interaction.guild.id}` SET resolved = 1, expired = 1, resolved_by, resolve_reason = %s WHERE moderation_id = %s"
resolve_query = f"UPDATE `{db}`.`moderation_{interaction.guild.id}` SET resolved = 1, expired = 1, resolved_by = %s, resolve_reason = %s WHERE moderation_id = %s"
else:
resolve_query = f"UPDATE `{db}`.`moderation_{interaction.guild.id}` SET resolved = 1, resolved_by = %s, resolve_reason = %s WHERE moderation_id = %s"
cursor.execute(resolve_query, (interaction.user.id, reason, case_number))