refactor(core): centralize on-hold user logic in traffic.py

This commit is contained in:
Whispering Wind
2025-08-26 00:14:25 +03:30
committed by GitHub
parent 9b12a28bbb
commit 28062074bf
4 changed files with 61 additions and 148 deletions

View File

@ -149,6 +149,7 @@ async def remove_user_api(username: str):
cli_api.kick_user_by_name(username)
cli_api.traffic_status(display_output=False)
cli_api.remove_user(username)
cli_api.traffic_status(display_output=False)
return DetailResponse(detail=f'User {username} has been removed.')
except HTTPException: