From c04735172334f9998a35dff1a7c42deb2b7dc139 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 21:26:17 +0200 Subject: [PATCH] added html for remove tag --- main.py | 4 ++-- templates/removetag.html | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 templates/removetag.html diff --git a/main.py b/main.py index 7848c3c..0574d7a 100644 --- a/main.py +++ b/main.py @@ -124,7 +124,7 @@ def request_addtag(data): socketio.emit("error", "error") @app.route("/removetag", methods=['GET']) -def get_addtag_request(): +def get_removetag_request(): global users try: user_id = int(request.args.get("id")) @@ -136,7 +136,7 @@ def get_addtag_request(): return render_template("removetag.html", user=user_id) @socketio.on('removetag') -def request_addtag(data): +def request_removetag(data): global finished if len(users.queue) > 0: user = users.queue[len(users.queue) - 1] diff --git a/templates/removetag.html b/templates/removetag.html new file mode 100644 index 0000000..f84d34d --- /dev/null +++ b/templates/removetag.html @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file