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