forked from bton/matekasse
test
This commit is contained in:
parent
bc42e46e8c
commit
05d51a6d8b
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -59,7 +59,7 @@ def list():
|
||||||
@app.route("/list/user", methods=['GET'])
|
@app.route("/list/user", methods=['GET'])
|
||||||
def user_info():
|
def user_info():
|
||||||
username = request.args.get("user")
|
username = request.args.get("user")
|
||||||
c.execute("SELECT * FROM users WHERE username = %(username)s", {'username': username})
|
c.execute("SELECT * FROM users WHERE username = ?", username)
|
||||||
user_list = c.fetchall()
|
user_list = c.fetchall()
|
||||||
if user_list != []:
|
if user_list != []:
|
||||||
user = user_list[0]
|
user = user_list[0]
|
||||||
|
|
Loading…
Reference in a new issue