From d303b1da47807f48f5cb1c3db542c086d6cb9b98 Mon Sep 17 00:00:00 2001 From: Jimbo <17926797+Kapppa@users.noreply.github.com> Date: Sat, 11 Jul 2026 23:42:17 +0100 Subject: [PATCH] Notes fix: before note being the new note --- chiya/cogs/note.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chiya/cogs/note.py b/chiya/cogs/note.py index 7faf1851..5b895114 100644 --- a/chiya/cogs/note.py +++ b/chiya/cogs/note.py @@ -126,6 +126,8 @@ async def edit_log(self, ctx: discord.Interaction, id: int, note: str) -> None: if not log: return await embeds.send_error(ctx=ctx, description="Could not find a log with that ID!") + old_reason = log.display_reason + log.reason = note db.session.commit() @@ -135,7 +137,7 @@ async def edit_log(self, ctx: discord.Interaction, id: int, note: str) -> None: embed.title = f"Edited log: {user.name}" embed.description = f"Log #{id} for {user.mention} was updated by {ctx.user.mention}" embed.color = discord.Color.green() - embed.add_field(name="Before:", value=log.display_reason, inline=False) + embed.add_field(name="Before:", value=old_reason, inline=False) embed.add_field(name="After:", value=note, inline=False) embed.set_thumbnail(url="https://i.imgur.com/A4c19BJ.png")