forked from bton/matekasse
test
This commit is contained in:
parent
bc4b74f839
commit
a1e6ac7334
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -69,7 +69,7 @@ def list():
|
|||
@app.route("/list/user", methods=['GET'])
|
||||
def user_info():
|
||||
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()
|
||||
if user_list != []:
|
||||
user = user_list[0]
|
||||
|
|
Loading…
Reference in a new issue