1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
2000-Trek 2023-06-16 19:15:59 +02:00
parent 90ee525cbc
commit 25d4ed2b71

View file

@ -59,7 +59,7 @@ def list():
@app.route("/list/user", methods=['GET'])
def user_info():
username = request.args.get("user")
c.execute("SELECT * FROM users WHERE username = ?", [(1, username)])
c.execute("SELECT * FROM users WHERE username = ?", [username])
user_list = c.fetchall()
if user_list != []:
user = user_list[0]