forked from bton/matekasse
user
This commit is contained in:
parent
97064df670
commit
289612cd98
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -33,7 +33,7 @@ def list():
|
|||
users = c.fetchall()
|
||||
text = ""
|
||||
for i in users:
|
||||
text = text + f'<p><a href="/user?user={i[1]}">{i[1]}</a>: {i[2]} <form action="/addtag" method="get"><input name="id" type="hidden" value="{i[0]}"><button type="submit">Add Tag</button></form><form action="/change" method="get"><input name="id" type="hidden" value="{i[0]}"> Change balance: <input name="change"><input type="submit"></form></p><br></br>'
|
||||
text = text + f'<p><a href="list/user?user={i[1]}">{i[1]}</a>: {i[2]} <form action="/addtag" method="get"><input name="id" type="hidden" value="{i[0]}"><button type="submit">Add Tag</button></form><form action="/change" method="get"><input name="id" type="hidden" value="{i[0]}"> Change balance: <input name="change"><input type="submit"></form></p><br></br>'
|
||||
return '<form action="/list/user" method="get"> Search for User: <input name="user"><input type="submit"></form> <form action="/adduser" method="get"><button type="submit">Add User</button></form> <br></br>' + text
|
||||
|
||||
@app.route("/list/user", methods=['GET'])
|
||||
|
|
Loading…
Reference in a new issue