From 0905430ad5de0955d7bd136a22bdab1ce870b08e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 11:22:25 -0500 Subject: [PATCH] fix(moderation): fixed classmethod being in a sql query --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index a67a3eb..8364e17 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -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))