diff --git a/main.py b/main.py index 79991eb..ca004c7 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,18 @@ def list(): text = "" for i in users: text = text + f'

{i[1]}: {i[2]}

Change balance:



' - return '
Search for User:


' + text + return ''' + + +
Search for User:
+
+

+ ''' + text + '' @app.route("/list/user", methods=['GET']) def user_info(): @@ -56,7 +67,7 @@ def user_info(): text = "" for tag in tags: text = text + f"

{tag[0]}

" - return f'

{user[1]}: {user[2]}

Change balance:



Tags:

{text}

{text}' + return f'

{user[1]}: {user[2]}

Change balance:



Tags:

{text}

' else: return "User does not exists" @@ -144,9 +155,7 @@ def request_addtag(data): finished = None c.execute(f"SELECT * FROM users WHERE id ={user[0]}") username = c.fetchall()[0][1] - c.execute(f"SELECT * FROM tags WHERE userid={user[0]}") - tag_id = c.fetchall()[0][0] - socketio.emit("finished", f"Added {tag_id} to {username}", to=session[id]) + socketio.emit("finished", f"Added tag to {username}", to=session[id]) #print tagid else: socketio.emit("busy", "busy", to=session[id]) else: