diff --git a/modules/creditdunord/backend.py b/modules/creditdunord/backend.py index 260fa5ce..24137804 100644 --- a/modules/creditdunord/backend.py +++ b/modules/creditdunord/backend.py @@ -69,12 +69,14 @@ class CreditDuNordBackend(BaseBackend, ICapBank): def iter_history(self, account): with self.browser: + account = self.browser.get_account(account.id) transactions = list(self.browser.get_history(account)) transactions.sort(key=lambda tr: tr.rdate, reverse=True) return [tr for tr in transactions if not tr._is_coming] def iter_coming(self, account): with self.browser: + account = self.browser.get_account(account.id) transactions = list(self.browser.get_card_operations(account)) transactions.sort(key=lambda tr: tr.rdate, reverse=True) return [tr for tr in transactions if tr._is_coming] diff --git a/modules/creditdunord/browser.py b/modules/creditdunord/browser.py index 28a2edcc..de464787 100644 --- a/modules/creditdunord/browser.py +++ b/modules/creditdunord/browser.py @@ -117,7 +117,6 @@ class CreditDuNordBrowser(BaseBrowser): args = self.page.get_next_args(args) def get_history(self, account): - account = self.get_account(account.id) for tr in self.iter_transactions(account._link, account._args): yield tr