From cea5f699c818b93ef094883634526eecd6150494 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 23:28:12 +0200 Subject: [PATCH] print --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index e0c9660..5edd38e 100644 --- a/main.py +++ b/main.py @@ -156,6 +156,7 @@ def request_removetag(data): if user == [data["data"], "remove", session[id]]: socketio.emit("wait", "wait", to=session[id]) i = 0 + print(session[id]) while finished != [data["data"], "remove", session[id]]: time.sleep(1) i += 1 @@ -186,8 +187,11 @@ def get_id(): tag_list = c.fetchall() if users.qsize() > 0: queue_item = users.get() + print(queue_item) user = queue_item[0] + print(user) state = queue_item[1] + print(state) if state == "add": c.execute(f"INSERT OR IGNORE INTO tags (tagid, userid) VALUES ({tag_id}, {user})") elif state == "remove":