From 8d13282dab4101b65ccdf34a2a6273959b8891d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Wed, 18 Apr 2012 00:31:36 +0200 Subject: [PATCH] boobank: never convert a float to decimal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- weboob/applications/boobank/boobank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 93e9b729..559a0fc4 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -108,7 +108,7 @@ class AccountListFormatter(IFormatter): result = (u' %s%-' + (u'15' if alias is not None else '30') + u's%s %-25s %8s %8s') % \ (self.BOLD, id, self.NC, - obj.label, '%.2f' % obj.balance, '%.2f' % (obj.coming or Decimal(0.0))) + obj.label, '%.2f' % obj.balance, '%.2f' % (obj.coming or Decimal(0))) self.tot_balance += obj.balance if obj.coming: