From ad31e681432567a7e85cc9fa1f3a9e8b225b8f1a Mon Sep 17 00:00:00 2001 From: smurail Date: Thu, 23 Oct 2014 14:48:41 +0200 Subject: [PATCH] ISIN is a 12 letter word --- weboob/applications/boobank/boobank.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 659e072a..db9038a0 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -198,8 +198,8 @@ class InvestmentFormatter(IFormatter): tot_diff = Decimal(0) def start_format(self, **kwargs): - self.output(' Label Code Quantity Unit Value Valuation diff ') - self.output('-------------------------------+----------+------------+------------+------------+---------') + self.output(' Label Code Quantity Unit Value Valuation diff ') + self.output('-------------------------------+--------------+------------+------------+------------+---------') def format_obj(self, obj, alias): label = obj.label @@ -212,7 +212,7 @@ class InvestmentFormatter(IFormatter): return u' %s %s %s %s %s %s' % \ (self.colored('%-30s' % label[:30], 'red'), - self.colored('%-8s' % obj.code[:8], 'yellow') if not empty(obj.code) else ' ' * 8, + self.colored('%-12s' % obj.code[:12], 'yellow') if not empty(obj.code) else ' ' * 12, self.colored('%11.2f' % obj.quantity, 'yellow'), self.colored('%11.2f' % obj.unitvalue, 'yellow'), self.colored('%11.2f' % obj.valuation, 'yellow'), @@ -220,7 +220,7 @@ class InvestmentFormatter(IFormatter): ) def flush(self): - self.output(u'-------------------------------+----------+------------+------------+------------+---------') + self.output(u'-------------------------------+--------------+------------+------------+------------+---------') self.output(u' Total %s %s' % (self.colored('%11.2f' % self.tot_valuation, 'yellow'), self.colored('%9.2f' % self.tot_diff, 'green' if self.tot_diff >=0 else 'red')