Debuging?
This commit is contained in:
parent
872d5e4044
commit
5914ca383a
1 changed files with 6 additions and 2 deletions
8
main.py
8
main.py
|
@ -68,8 +68,12 @@ def new_user():
|
||||||
def remove_user():
|
def remove_user():
|
||||||
user_id = request.args.get("id")
|
user_id = request.args.get("id")
|
||||||
#Noch eine Bestätigung nötig
|
#Noch eine Bestätigung nötig
|
||||||
c.execute(f"DELETE * FROM tags WHERE userid={user_id}")
|
c.execute(f"SELECT * FROM tags WHERE userid={user_id}")
|
||||||
c.execute(f"DELETE * FROM users WHERE id={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()
|
conn.commit()
|
||||||
|
|
||||||
@app.route("/adduser/user", methods=['GET'])
|
@app.route("/adduser/user", methods=['GET'])
|
||||||
|
|
Loading…
Reference in a new issue