Fix Edit user

This commit is contained in:
Whispering Wind
2024-08-01 23:24:02 +03:30
committed by GitHub
parent 632826a69b
commit ada839714d

View File

@ -167,12 +167,13 @@ def edit_user(username: str, new_username: str, new_traffic_limit: int, new_expi
str(new_expiration_days) if new_expiration_days is not None else '', str(new_expiration_days) if new_expiration_days is not None else '',
password, password,
creation_date, creation_date,
str(blocked).lower() if blocked is not None else 'false' 'true' if blocked else 'false'
] ]
run_cmd(command_args) run_cmd(command_args)
@ cli.command('remove-user') @ cli.command('remove-user')
@ click.option('--username', '-u', required=True, help='Username for the user to remove', type=str) @ click.option('--username', '-u', required=True, help='Username for the user to remove', type=str)
def remove_user(username: str): def remove_user(username: str):