flush print total only when there are accounts in queue

This commit is contained in:
Romain Bignon 2011-08-16 09:31:07 +02:00
commit 6c2dfef837

View file

@ -70,6 +70,9 @@ class AccountListFormatter(IFormatter):
def flush(self):
if count < 1:
return
result = u'------------------------------------------%s+----------+----------\n' % (('-' * 15) if not self.interactive else '')
result +=u'%s Total %8s %8s' % ((' ' * 15) if not self.interactive else '',
'%.2f' % self.tot_balance, '%.2f' % self.tot_coming)