From a9119fd6650403fe8f8ab79e95aa416cc9d672aa Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 25 Jul 2015 11:09:34 +0200 Subject: [PATCH] correctly set IDs --- modules/bnporc/pp/browser.py | 2 +- modules/bnporc/pp/pages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bnporc/pp/browser.py b/modules/bnporc/pp/browser.py index 11839e69..35773c91 100644 --- a/modules/bnporc/pp/browser.py +++ b/modules/bnporc/pp/browser.py @@ -97,7 +97,7 @@ class BNPParibasBrowser(CompatMixin, JsonBrowserMixin, LoginBrowser): @need_login def iter_history(self, account, coming=False): self.page = self.history.go(data=JSON({ - "ibanCrypte": account._key, + "ibanCrypte": account.id, "pastOrPending": 1, "triAV": 0, "startDate": None, diff --git a/modules/bnporc/pp/pages.py b/modules/bnporc/pp/pages.py index 45e02a98..a7754ee4 100644 --- a/modules/bnporc/pp/pages.py +++ b/modules/bnporc/pp/pages.py @@ -136,7 +136,7 @@ class AccountsPage(BNPPage): for f in self.path('data.infoUdc.familleCompte.*'): for a in f.get('compte'): yield Account.from_dict({ - '_key': a.get('key'), + 'id': a.get('key'), 'label': a.get('libellePersoProduit') or a.get('libelleProduit'), 'currency': a.get('devise'), 'type': self.FAMILY_TO_TYPE.get(f.get('idFamilleCompte')) or Account.TYPE_UNKNOWN,