From 01f16019ff9538d2a5fa76b91fad35e699255ae7 Mon Sep 17 00:00:00 2001 From: forest Date: Mon, 11 Apr 2022 15:16:50 -0500 Subject: [PATCH] whoops, fix backwards filter condition --- capsulflask/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))