1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
2000-Trek 2023-06-23 21:27:20 +02:00
parent bc4b74f839
commit a1e6ac7334

View file

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