From 57bf820501001c60406390bd90df3c44b57ac968 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 20 Dec 2024 01:14:34 -0500 Subject: [PATCH] properly unwrap query for disabled --- nomen/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomen/notifications.py b/nomen/notifications.py index 3513792..e0e3172 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -54,9 +54,9 @@ async def handle_triggers(ctx, message): disabled = await ctx.bot.db.execute_fetchall( "SELECT EXISTS(SELECT * FROM users WHERE user_id=:author AND disabled IS 1)", params - )[0] + ) - if disabled: + if disabled[0][0]: log.debug(f"User {ctx.author} ({ctx.author.id}) opted out") return