fix navigation for deferred cards
This commit is contained in:
parent
9731ae1b91
commit
d74be0340e
2 changed files with 2 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue