diff --git a/capsulflask/cli.py b/capsulflask/cli.py index 1db086c..78ce59c 100644 --- a/capsulflask/cli.py +++ b/capsulflask/cli.py @@ -246,7 +246,7 @@ def notify_users_about_account_balance(): balance_now = get_account_balance(vms, payments, datetime.utcnow()) current_warning = account['account_balance_warning'] - if balance_now < -11 and len(list(filter(lambda vm: vm['deleted'], vms))) > 0: + if balance_now < -11 and len(list(filter(lambda vm: not vm['deleted'], vms))) > 0: out_of_bounds_accounts[account['email']] = balance_now longterm_vms = list(filter(lambda vm: vm['shortterm'] == False, vms))