Added '' to c.execute
This commit is contained in:
parent
3ad65b2064
commit
45d448dad9
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -122,7 +122,7 @@ def confirm_remove_user():
|
|||
@app.route("/removeuser", methods=['GET'])
|
||||
def remove_user():
|
||||
user_id = request.args.get("id")
|
||||
c.execute(f"SELECT * FROM users WHERE id={user_id}")
|
||||
c.execute(f"SELECT * FROM users WHERE id='{user_id}'")
|
||||
users = c.fetchall()
|
||||
if users != []:
|
||||
user_name = users[0][1]
|
||||
|
|
Loading…
Reference in a new issue