From 7809ece073a4b0b011130ac1ba3e26c39bd8e4f1 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 22:20:47 +0200 Subject: [PATCH] sessionid to str --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d91092f..d5aeb90 100644 --- a/main.py +++ b/main.py @@ -94,7 +94,7 @@ def get_addtag_request(): except: #except im Normalen Code! return "Wrong user id!" session_id = uuid.uuid4() - session[id] = session_id + session[id] = str(session_id) users.put([user_id, "add", session_id]) return render_template("addtag.html", user=user_id) @@ -133,7 +133,7 @@ def get_removetag_request(): except: #except im Normalen Code! return "Wrong user id!" session_id = uuid.uuid4() - session[id] = session_id + session[id] = str(session_id) users.put([user_id, "remove"]) return render_template("removetag.html", user=user_id)