properly unwrap query for disabled
This commit is contained in:
parent
f027f8c462
commit
57bf820501
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue