diff --git a/main.py b/main.py index 7fb586c..ff7e103 100644 --- a/main.py +++ b/main.py @@ -133,10 +133,10 @@ def remove_user(): users = c.fetchall() if users != []: user_name = users[0][1] - c.execute(f"DELETE FROM tags WHERE userid={user_id}") - db_log.info(f"Deleted all tags from user {user_id}") - c.execute(f"DELETE FROM users WHERE id={user_id}") - db_log.info(f"Deleted user {user_id}") + c.execute(f"DELETE FROM tags WHERE userid=?", [user_id]) + db_log.info(f"Deleted all tags from user ?", [user_id]) + c.execute(f"DELETE FROM users WHERE id=?", [user_id]) + db_log.info(f"Deleted user ?", [user_id]) conn.commit() socketio.emit("update", "update") return f'
user and tag list | Documentation
Deleted user {escape(user_name)}
return to the tags and user list'