diff --git a/main.py b/main.py index 92be86b..afd724e 100644 --- a/main.py +++ b/main.py @@ -61,9 +61,8 @@ def list(): text = "" for i in users: text = text + f'

{escape(i[1])}: {i[2]}

Change balance:



' - return ''' - {% extends 'base.html' %} - {% block content %} + return ''' + +

user and tag list | Documentation

1 Credit = 1,50 Euro

Search for User:


- ''' + text + 'Doumentation {% block content %}' + ''' + text + 'Doumentation' @app.route("/list/user", methods=['GET']) def user_info(): @@ -96,6 +96,7 @@ def user_info(): var socket = io(); """ + 'socket.on("update", function(){ window.location="http://matekasse.server.c3h/list/user?id=' + id + '"});' + f""" +

user and tag list | Documentation

{escape(user[1])} : {user[2]}

@@ -118,7 +119,7 @@ def new_user(): @app.route("/removeuser/confirmation", methods=['GET']) def confirm_remove_user(): user_id = request.args.get("id") - return f'Do your realy want to remove the user' + return f'

user and tag list | Documentation

Do your realy want to remove the user

' @app.route("/removeuser", methods=['GET']) def remove_user(): @@ -133,7 +134,7 @@ def remove_user(): db_log.info(f"Deleted user {user_id}") conn.commit() socketio.emit("update", "update") - return f'

Deleted user {escape(user_name)}

return to the tags and user list' + return f'

user and tag list | Documentation

Deleted user {escape(user_name)}

return to the tags and user list

' else: return "Error: 043" @@ -156,7 +157,7 @@ def adduser(): """ else: - return '

Error: 170

user and tag list' + return '

user and tag list | Documentation

Error: 170

' @app.route("/change", methods=['GET']) @@ -184,7 +185,7 @@ def change(): """ else: - return "Error: 043" + return '

user and tag list | Documentation

Error: 043

' @app.route("/addtag", methods=['GET']) def get_addtag_request():