diff --git a/main.py b/main.py index e9765b9..29f766c 100644 --- a/main.py +++ b/main.py @@ -266,6 +266,7 @@ def get_id(): finished = queue_item c.execute(f"SELECT * FROM users WHERE id={user}") username = c.fetchall() + conn.commit() return make_response(json.dumps({"mode":"2","username":username,"code":"1"})) elif state == "remove": c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = {user})") @@ -276,15 +277,15 @@ def get_id(): finished = queue_item c.execute(f"SELECT * FROM users WHERE id={user}") username = c.fetchall() + conn.commit() return make_response(json({"mode":"2","username":username,"code":"2"})) else: message = "Tag does not exist" finished = queue_item return make_response(json.dumps({"mode":"0","error":"054"})) - conn.commit() finished = queue_item socketio.emit("update", "update") - return make_response("True") + return make_response(json.dumps({"mode":"0","error":"418"})) elif tag_list != []: tag = tag_list[0] @@ -302,6 +303,7 @@ def get_id(): app.route("/documentation") def documentation(): return render_template("documentation.html") + def main(): atexit.register(exit_handler) socketio.run(app, host='0.0.0.0', port=5000) \ No newline at end of file diff --git a/templates/documentation.css b/templates/documentation.css new file mode 100644 index 0000000..159f6e6 --- /dev/null +++ b/templates/documentation.css @@ -0,0 +1,35 @@ +body{ + background-color: rgb(255, 255, 255); +} + +#Überschrift{ + color: rgb(0, 0, 0); +} + + +#Infos{ + color: black; + box-shadow: 3px 3px gray ; + background-color: lightgreen; + border-style: solid; + border-radius: 40px; + padding: 5px; + border-width: 1px; + border-color:white; + margin-bottom: 50px; + +} +#text_Infos1{ + text-align: center; + color: black; + background-color: gray; + border: 2px; + border-style: dashed; + border-color: white; + border-radius: 10px; +} + +#Überschrift_Infos1{ + color: rgb(7, 253, 7); + text-shadow: 5px 3px rgb(114, 99, 99); +} \ No newline at end of file diff --git a/templates/documentation.html b/templates/documentation.html new file mode 100644 index 0000000..d467aaa --- /dev/null +++ b/templates/documentation.html @@ -0,0 +1,21 @@ + + + + Documentation + + + + + + Documentation +

 

+
+

index page | user and tag list

+
+
+ Documentation +

Documentation

+
+ + + \ No newline at end of file