From d74be0340ee4dadaacef0af133a6c7756a1b2e40 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 10 Apr 2013 17:33:06 +0200 Subject: [PATCH] fix navigation for deferred cards --- modules/creditdunord/backend.py | 2 ++ modules/creditdunord/browser.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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