Deleted * from sql
This commit is contained in:
parent
5914ca383a
commit
218a9cb6a7
1 changed files with 2 additions and 6 deletions
8
main.py
8
main.py
|
@ -68,12 +68,8 @@ 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"SELECT * FROM tags WHERE userid={user_id}")
|
c.execute(f"DELETE FROM tags WHERE userid={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"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