Fix pep8 on boobank

This commit is contained in:
Florent 2015-01-03 12:58:31 +01:00
commit 0237112dd6

View file

@ -234,8 +234,8 @@ class InvestmentFormatter(IFormatter):
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')
))
self.colored('%9.2f' % self.tot_diff, 'green' if self.tot_diff >= 0 else 'red'))
)
self.tot_valuation = Decimal(0)
self.tot_diff = Decimal(0)
@ -510,7 +510,7 @@ class Boobank(ReplApplication):
accounts[account['number']] = account
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,
'balance': account.balance,
'number': account.id,