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

@ -35,7 +35,7 @@ def add_bulk_users(traffic_gb, expiration_days, count, prefix, start_number, unl
existing_users_lower = {u.lower() for u in users_data}
new_users_to_add = {}
creation_date = datetime.now().strftime("%Y-%m-%d")
creation_date = None
try:
password_process = subprocess.run(['pwgen', '-s', '32', str(count)], capture_output=True, text=True, check=True)