From b60b40023ed55cba16c75bf0cff8dd3fe03acdb3 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Sat, 25 Nov 2023 20:11:15 +0100 Subject: [PATCH] remove tag button --- Website/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Website/__init__.py b/Website/__init__.py index 8d93fe3..856b26a 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -289,7 +289,13 @@ def create_app(test_config=None): db.commit() message = f"Removed {tag_id} from user {user_id}" log(type="removetag", userid=user_id, before=tag_id) - return message + return f""" + + + + """ else: return render_template("error.html", error_code="054") @@ -299,7 +305,7 @@ def create_app(test_config=None): global message join_room(session[id]) if len(user_queue.queue) > 0: - queue_item = user_queue.queue[len(user_queue.queue) - 1] + queue_item = user_queue.queue[0] user = queue_item[0] if queue_item == [data["data"], "remove", session[id]]: socketio.emit("wait", "wait", to=session[id])