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":