diff --git a/main.py b/main.py index f8594ac..e9765b9 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ def exit_handler(): #website @app.route("/") def index(): - return 'user and tag list

The creator of this website accepts no liability for any linguistic or technical errors!

' + return 'user and tag list

The creator of this website accepts no liability for any linguistic or technical errors!



Doumentation' @app.route("/list") def list(): @@ -266,7 +266,7 @@ def get_id(): finished = queue_item c.execute(f"SELECT * FROM users WHERE id={user}") username = c.fetchall() - return make_response(json({"mode":"2","username":username,"code":"1"})) + 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})") tags = c.fetchall() @@ -296,8 +296,12 @@ def get_id(): socketio.emit("update", "upfinished = queue_itemdate") return make_response(json.dumps({"mode":"1", "username":user[1], "balance":user[2]})) socketio.emit("update", "update") - return make_response(json.dump({"mode":"0","error":"418"})) + return make_response(json.dumps({"mode":"0","error":"418"})) +#Documentation +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