fix boobank when coming is not available

This commit is contained in:
Romain Bignon 2010-10-09 09:03:19 +02:00
commit d351cd13f0
3 changed files with 6 additions and 4 deletions

View file

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