fix(moderation): fixed resolve_query being broken
All checks were successful
Pylint / Pylint (push) Successful in 1m14s
All checks were successful
Pylint / Pylint (push) Successful in 1m14s
This commit is contained in:
parent
fb2e99bbcd
commit
d55d37954d
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue