diff --git a/modules/societegenerale/browser.py b/modules/societegenerale/browser.py index 6d922ebe46f65b534e427fef095ea1fd656dd656..f98f7da769ee529b0946c7840c6fc410a9820ee6 100644 --- a/modules/societegenerale/browser.py +++ b/modules/societegenerale/browser.py @@ -218,7 +218,7 @@ def get_accounts_list(self): if account._prestation_id in account_comings: account.coming = account_comings[account._prestation_id] - if account.type in (account.TYPE_LOAN, account.TYPE_CONSUMER_CREDIT, account.TYPE_MORTGAGE): + if account.type in (account.TYPE_LOAN, account.TYPE_CONSUMER_CREDIT, ): self.loans.stay_or_go(conso=(account._loan_type == 'PR_CONSO')) account = self.page.get_loan_account(account) diff --git a/modules/societegenerale/pages/accounts_list.py b/modules/societegenerale/pages/accounts_list.py index f561f558835437d751462c32ae39b35d9df3a3e1..22a5d6402ea8f20d9810a3e3a90cbaec26d2554a 100644 --- a/modules/societegenerale/pages/accounts_list.py +++ b/modules/societegenerale/pages/accounts_list.py @@ -166,7 +166,6 @@ def condition(self): 'AVANCE_PATRIMOINE': Account.TYPE_REVOLVING_CREDIT, 'PRET_EXPRESSO': Account.TYPE_CONSUMER_CREDIT, 'PRET_EVOLUTIF': Account.TYPE_CONSUMER_CREDIT, - 'PR_IMMO': Account.TYPE_MORTGAGE, 'PERP_EPICEA': Account.TYPE_PERP, } @@ -185,10 +184,7 @@ def condition(self): obj__cards = Dict('cartes', default=[]) def obj_type(self): - account_type = self.TYPES.get(Dict('produit')(self), Account.TYPE_UNKNOWN) - if account_type == Account.TYPE_LOAN: - account_type = self.TYPES.get(Dict('codeFamille')(self), Account.TYPE_LOAN) - return account_type + return self.TYPES.get(Dict('produit')(self), Account.TYPE_UNKNOWN) def obj_ownership(self): # 'groupeRoleDTO' can contains 'TITULAIRE', 'MANDATAIRE' or 'REPRESENTATION' @@ -205,7 +201,7 @@ def obj_ownership(self): def obj__loan_type(self): if Field('type')(self) in (Account.TYPE_LOAN, Account.TYPE_CONSUMER_CREDIT, - Account.TYPE_REVOLVING_CREDIT, Account.TYPE_MORTGAGE,): + Account.TYPE_REVOLVING_CREDIT, ): return Dict('codeFamille')(self) return None