1
0
Fork 0
forked from bton/matekasse

Debuging?

This commit is contained in:
2000-Trek 2023-06-14 19:28:35 +02:00
parent 872d5e4044
commit 5914ca383a

View file

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