From 578a76902e06f1ef355482a148a20cd6dd5f8df2 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Sat, 25 Nov 2023 00:14:51 +0100 Subject: [PATCH] fix log --- Website/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Website/__init__.py b/Website/__init__.py index ddba52c..8ac049d 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -346,7 +346,9 @@ def create_app(test_config=None): state = queue_item[1] c.execute(f"SELECT * FROM users WHERE id=?", [user]) - user_id = c.fetchone()[0] + user = c.fetchall() + user_id = user[0] + username = user[1] if state == "add": c.execute(f"SELECT * FROM tags WHERE tagid={tag_id}") if c.fetchall() != []: