1
0
Fork 0
forked from bton/matekasse

Deleted * from sql

This commit is contained in:
2000-Trek 2023-06-14 19:36:30 +02:00
parent 5914ca383a
commit 218a9cb6a7

View file

@ -68,12 +68,8 @@ def new_user():
def remove_user():
user_id = request.args.get("id")
#Noch eine Bestätigung nötig
c.execute(f"SELECT * FROM tags WHERE userid={user_id}")
if c.fetchall != []:
c.execute(f"DELETE * FROM tags WHERE userid={user_id}")
c.execute(f"SELECT * FROM useres WHERE id={user_id}")
if c.fetchall != []:
c.execute(f"DELETE * FROM users WHERE id={user_id}")
c.execute(f"DELETE FROM tags WHERE userid={user_id}")
c.execute(f"DELETE FROM users WHERE id={user_id}")
conn.commit()
@app.route("/adduser/user", methods=['GET'])