fix boobank when coming is not available
This commit is contained in:
parent
63ae68567e
commit
d351cd13f0
3 changed files with 6 additions and 4 deletions
|
|
@ -44,7 +44,8 @@ class Boobank(ReplApplication):
|
|||
for backend, account in self.do('iter_accounts'):
|
||||
self.format(account)
|
||||
tot_balance += account.balance
|
||||
tot_coming += account.coming
|
||||
if account.coming:
|
||||
tot_coming += account.coming
|
||||
self.accounts.append(account)
|
||||
else:
|
||||
self.format((('label', 'Total'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue