1
0
Fork 0
forked from bton/matekasse

fixed error in /removeuser

This commit is contained in:
2000-Trek 2023-06-14 18:56:26 +02:00
parent 6500962dc4
commit 24973d555d

View file

@ -66,9 +66,7 @@ def new_user():
@app.route("/removeuser", methods=['GET'])
def remove_user():
user_name = request.args.get("id")
c.execute("SELECT * FROM users WHERE username = '%s'" % user_name)
user_id = c.fetchall()[0][0]
user_id = request.args.get("id")
c.execute(f"DELETE * FROM tags WHERE userid={user_id}") #Noch eine Bestätigung nötig
c.execute(f"DELETE * FROM users WHERE id={user_id}")
conn.commit()