whoops, fix backwards filter condition

This commit is contained in:
forest 2022-04-11 15:16:50 -05:00
parent 9868460b9c
commit 01f16019ff
1 changed files with 1 additions and 1 deletions

View File

@ -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))