From d830b07e60d2a8865d9b6ce50ef43f71ef2b0e98 Mon Sep 17 00:00:00 2001 From: VD15 Date: Sat, 17 May 2025 19:05:34 +0100 Subject: [PATCH] Whoops, that's a tuple --- bot/db_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/db_utils.py b/bot/db_utils.py index c319488..aefe395 100644 --- a/bot/db_utils.py +++ b/bot/db_utils.py @@ -17,7 +17,7 @@ def get_or_create_user(username): conn.row_factory = sqlite3.Row cur = conn.cursor() cur.execute('SELECT id FROM users WHERE username = ?', (username,)) - user = cur.fetchone() + user = cur.fetchone()[0] if user: conn.close() return user