Fix pep8 on boobank
This commit is contained in:
parent
043b2cd814
commit
0237112dd6
1 changed files with 19 additions and 19 deletions
|
|
@ -234,8 +234,8 @@ class InvestmentFormatter(IFormatter):
|
||||||
self.output(u'-------------------------------+--------------+------------+------------+------------+---------')
|
self.output(u'-------------------------------+--------------+------------+------------+------------+---------')
|
||||||
self.output(u' Total %s %s' %
|
self.output(u' Total %s %s' %
|
||||||
(self.colored('%11.2f' % self.tot_valuation, 'yellow'),
|
(self.colored('%11.2f' % self.tot_valuation, 'yellow'),
|
||||||
self.colored('%9.2f' % self.tot_diff, 'green' if self.tot_diff >=0 else 'red')
|
self.colored('%9.2f' % self.tot_diff, 'green' if self.tot_diff >= 0 else 'red'))
|
||||||
))
|
)
|
||||||
self.tot_valuation = Decimal(0)
|
self.tot_valuation = Decimal(0)
|
||||||
self.tot_diff = Decimal(0)
|
self.tot_diff = Decimal(0)
|
||||||
|
|
||||||
|
|
@ -510,7 +510,7 @@ class Boobank(ReplApplication):
|
||||||
accounts[account['number']] = account
|
accounts[account['number']] = account
|
||||||
|
|
||||||
for account in self.do('iter_accounts'):
|
for account in self.do('iter_accounts'):
|
||||||
if not account.id in accounts:
|
if account.id not in accounts:
|
||||||
r = client.request('users/me/accounts', data={'name': account.label,
|
r = client.request('users/me/accounts', data={'name': account.label,
|
||||||
'balance': account.balance,
|
'balance': account.balance,
|
||||||
'number': account.id,
|
'number': account.id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue