diff --git a/core/cli.py b/core/cli.py index 3f1aea2..4c8421f 100644 --- a/core/cli.py +++ b/core/cli.py @@ -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 '', password, creation_date, - str(blocked).lower() if blocked is not None else 'false' + 'true' if blocked else 'false' ] run_cmd(command_args) + @ cli.command('remove-user') @ click.option('--username', '-u', required=True, help='Username for the user to remove', type=str) def remove_user(username: str):