sessionid to str

This commit is contained in:
2000-Trek 2023-06-09 22:20:47 +02:00
parent 1cc13c6cd9
commit 7809ece073

View file

@ -94,7 +94,7 @@ def get_addtag_request():
except: #except im Normalen Code! except: #except im Normalen Code!
return "Wrong user id!" return "Wrong user id!"
session_id = uuid.uuid4() session_id = uuid.uuid4()
session[id] = session_id session[id] = str(session_id)
users.put([user_id, "add", session_id]) users.put([user_id, "add", session_id])
return render_template("addtag.html", user=user_id) return render_template("addtag.html", user=user_id)
@ -133,7 +133,7 @@ def get_removetag_request():
except: #except im Normalen Code! except: #except im Normalen Code!
return "Wrong user id!" return "Wrong user id!"
session_id = uuid.uuid4() session_id = uuid.uuid4()
session[id] = session_id session[id] = str(session_id)
users.put([user_id, "remove"]) users.put([user_id, "remove"])
return render_template("removetag.html", user=user_id) return render_template("removetag.html", user=user_id)