Compare commits
No commits in common. "d8951d3ecfa10b1c30c1322c51d8ef02d5f65077" and "ec0b5e0ddca402cd64376856f17480aba6c3f776" have entirely different histories.
d8951d3ecf
...
ec0b5e0ddc
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -133,10 +133,10 @@ def remove_user():
|
||||||
users = c.fetchall()
|
users = c.fetchall()
|
||||||
if users != []:
|
if users != []:
|
||||||
user_name = users[0][1]
|
user_name = users[0][1]
|
||||||
c.execute(f"DELETE FROM tags WHERE userid=?", [user_id])
|
c.execute(f"DELETE FROM tags WHERE userid={user_id}")
|
||||||
db_log.info(f"Deleted all tags from user ?", [user_id])
|
db_log.info(f"Deleted all tags from user {user_id}")
|
||||||
c.execute(f"DELETE FROM users WHERE id=?", [user_id])
|
c.execute(f"DELETE FROM users WHERE id={user_id}")
|
||||||
db_log.info(f"Deleted user ?", [user_id])
|
db_log.info(f"Deleted user {user_id}")
|
||||||
conn.commit()
|
conn.commit()
|
||||||
socketio.emit("update", "update")
|
socketio.emit("update", "update")
|
||||||
return f'<p><p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p> <p>Deleted user {escape(user_name)}</p><a href="/list">return to the tags and user list</a></p>'
|
return f'<p><p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p> <p>Deleted user {escape(user_name)}</p><a href="/list">return to the tags and user list</a></p>'
|
||||||
|
|
Loading…
Reference in a new issue