diff --git a/modules/axabanque/browser.py b/modules/axabanque/browser.py index 6b3a44b42704990e4f0ef81b79b63036e24c2ccc..443bd13d1d210088fb153a72f20a602db53c1281 100644 --- a/modules/axabanque/browser.py +++ b/modules/axabanque/browser.py @@ -174,8 +174,8 @@ def iter_accounts(self): ids.add(a.id) - #The url giving life insurrance investments seems to be temporary. - #That's why we have to get them now + # The url giving life insurrance investments seems to be temporary. + # That's why we have to get them now if a.type == a.TYPE_LIFE_INSURANCE: self.cache['invs'][a.id] = list(self.open(a._url).page.iter_investment()) args = a._args @@ -186,7 +186,7 @@ def iter_accounts(self): 'codeFamille': args['paramCodeFamille'], 'codeProduit': args['paramCodeProduit'], 'codeSousProduit': args['paramCodeSousProduit'] - } + } try: r = self.open('/webapp/axabanque/popupPDF', params=iban_params) a.iban = r.page.get_iban() @@ -290,7 +290,7 @@ def iter_history(self, account): self.location(acc._market_link) self.bourse_history.go() - if not 'Liquidités' in account.label: + if 'Liquidités' not in account.label: self.page.go_history_filter(cash_filter="market") else: self.page.go_history_filter(cash_filter="liquidity")