whoops, fix backwards filter condition
This commit is contained in:
parent
9868460b9c
commit
01f16019ff
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user