From 41ec25cd214412645d558718bb2878bc1e8818c8 Mon Sep 17 00:00:00 2001 From: Interitio Date: Sat, 1 Nov 2025 07:03:30 +1000 Subject: [PATCH] fix: Caching issue on unfocus --- hyperfocus/twitch/component.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperfocus/twitch/component.py b/hyperfocus/twitch/component.py index cacdfc2..016bdc7 100644 --- a/hyperfocus/twitch/component.py +++ b/hyperfocus/twitch/component.py @@ -168,7 +168,9 @@ class FocusComponent(cmds.Component): @cmds.command(name="unfocus") async def unfocus_cmd(self, ctx): profile = await self.bot.profiles.fetch_profile(ctx.chatter, touch=True) - row = await Hyperfocuser.table.delete_where(profileid=profile.profileid) + row = await Hyperfocuser.fetch(profile.profileid) + if row: + await row.delete() await ctx.reply( "Welcome back from focus, hope it went well!"