forked from bton/matekasse
Debuging?
This commit is contained in:
parent
872d5e4044
commit
5914ca383a
1 changed files with 6 additions and 2 deletions
4
main.py
4
main.py
|
@ -68,7 +68,11 @@ 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}")
|
||||||
|
if c.fetchall != []:
|
||||||
c.execute(f"DELETE * FROM tags WHERE userid={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}")
|
c.execute(f"DELETE * FROM users WHERE id={user_id}")
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue