diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index a850127f3dbc6075d265854fc28e46022f3eec35..c0b9dd056495f8bc2b0f02d736e2499ff2fbc318 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -228,8 +228,12 @@ def get_accounts_list(self): if account.type == Account.TYPE_CARD and account.url not in valid_card_url: self.accounts_list.remove(account) elif account.type == Account.TYPE_LOAN: + # Loans details are present on another page so we create + # a Loan object and remove the corresponding Account: self.location(account.url) - self.loans_list.append(self.page.get_loan()) + loan = self.page.get_loan() + loan.url = account.url + self.loans_list.append(loan) self.accounts_list.remove(account) self.accounts_list.extend(self.loans_list)