diff --git a/modules/societegenerale/browser.py b/modules/societegenerale/browser.py index c3cd6a689df9ab9381859e2334dd3517ff1144de..a550292cd9bbc581b06bef82b2ce9068f38b2832 100644 --- a/modules/societegenerale/browser.py +++ b/modules/societegenerale/browser.py @@ -185,7 +185,7 @@ def get_accounts_list(self): if account._prestation_id in account_comings: account.coming = account_comings[account._prestation_id] - if account.type == account.TYPE_LOAN: + if account.type in (account.TYPE_LOAN, account.TYPE_CONSUMER_CREDIT, ): self.loans.go(conso=(account._loan_type == 'PR_CONSO')) account = self.page.get_loan_account(account) @@ -193,7 +193,7 @@ def get_accounts_list(self): @need_login def iter_history(self, account): - if account.type in (account.TYPE_LOAN, account.TYPE_MARKET, ): + if account.type in (account.TYPE_LOAN, account.TYPE_MARKET, account.TYPE_CONSUMER_CREDIT, ): return if account.type == Account.TYPE_PEA and not ('Espèces' in account.label or 'ESPECE' in account.label): @@ -234,7 +234,8 @@ def iter_history(self, account): @need_login def iter_coming(self, account): if account.type in (account.TYPE_LOAN, account.TYPE_MARKET, account.TYPE_PEA, - account.TYPE_LIFE_INSURANCE, account.TYPE_REVOLVING_CREDIT): + account.TYPE_LIFE_INSURANCE, account.TYPE_REVOLVING_CREDIT, + account.TYPE_CONSUMER_CREDIT, ): return internal_id = account._internal_id diff --git a/modules/societegenerale/pages/accounts_list.py b/modules/societegenerale/pages/accounts_list.py index 1b1efb8b9e35f54eb201498ea5df6762eace2bc5..79c18d91a7991b7552cd934b396445dca761656b 100644 --- a/modules/societegenerale/pages/accounts_list.py +++ b/modules/societegenerale/pages/accounts_list.py @@ -98,6 +98,7 @@ class item(ItemElement): 'VIE_FEDER': Account.TYPE_LIFE_INSURANCE, 'ASSURANCE_VIE_GENERALE': Account.TYPE_LIFE_INSURANCE, 'AVANCE_PATRIMOINE': Account.TYPE_REVOLVING_CREDIT, + 'PRET_EXPRESSO': Account.TYPE_CONSUMER_CREDIT, } obj_id = obj_number = CleanText(Dict('numeroCompteFormate'), replace=[(' ', '')]) @@ -115,7 +116,7 @@ def obj_type(self): obj__prestation_id = Dict('id') def obj__loan_type(self): - if Field('type')(self) == Account.TYPE_LOAN: + if Field('type')(self) in (Account.TYPE_LOAN, Account.TYPE_CONSUMER_CREDIT, ): return Dict('codeFamille')(self) return None