1
0
Fork 0
forked from waifu/kemoverse

Whoops, that's a tuple

This commit is contained in:
VD15 2025-05-17 19:05:34 +01:00
parent 9a4ed06d79
commit d830b07e60

View file

@ -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