Added '' to c.execute

This commit is contained in:
2000-Trek 2023-06-23 23:02:41 +02:00
parent 3ad65b2064
commit 45d448dad9

View file

@ -122,7 +122,7 @@ def confirm_remove_user():
@app.route("/removeuser", methods=['GET']) @app.route("/removeuser", methods=['GET'])
def remove_user(): def remove_user():
user_id = request.args.get("id") 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() users = c.fetchall()
if users != []: if users != []:
user_name = users[0][1] user_name = users[0][1]