fix(moderation): fixed classmethod being in a sql query
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 46s

This commit is contained in:
Seaswimmer 2023-12-15 11:22:25 -05:00
parent 6dae7f9442
commit 0905430ad5
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -1125,7 +1125,7 @@ class Moderation(commands.Cog):
else:
resolve_query = f"UPDATE `{db}`.`moderation_{interaction.guild.id}` SET resolved = 1, changes = %s, resolved_by = %s, resolve_reason = %s WHERE moderation_id = %s"
cursor.execute(resolve_query, (json.dumps(changes), interaction.user.id, reason, classmethod))
cursor.execute(resolve_query, (json.dumps(changes), interaction.user.id, reason, case_dict['moderation_id']))
database.commit()
embed = await self.embed_factory('case', interaction=interaction, case_dict=await self.fetch_case(case, interaction.guild.id))