correctly set IDs
This commit is contained in:
parent
e8ab487681
commit
a9119fd665
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ class BNPParibasBrowser(CompatMixin, JsonBrowserMixin, LoginBrowser):
|
||||||
@need_login
|
@need_login
|
||||||
def iter_history(self, account, coming=False):
|
def iter_history(self, account, coming=False):
|
||||||
self.page = self.history.go(data=JSON({
|
self.page = self.history.go(data=JSON({
|
||||||
"ibanCrypte": account._key,
|
"ibanCrypte": account.id,
|
||||||
"pastOrPending": 1,
|
"pastOrPending": 1,
|
||||||
"triAV": 0,
|
"triAV": 0,
|
||||||
"startDate": None,
|
"startDate": None,
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ class AccountsPage(BNPPage):
|
||||||
for f in self.path('data.infoUdc.familleCompte.*'):
|
for f in self.path('data.infoUdc.familleCompte.*'):
|
||||||
for a in f.get('compte'):
|
for a in f.get('compte'):
|
||||||
yield Account.from_dict({
|
yield Account.from_dict({
|
||||||
'_key': a.get('key'),
|
'id': a.get('key'),
|
||||||
'label': a.get('libellePersoProduit') or a.get('libelleProduit'),
|
'label': a.get('libellePersoProduit') or a.get('libelleProduit'),
|
||||||
'currency': a.get('devise'),
|
'currency': a.get('devise'),
|
||||||
'type': self.FAMILY_TO_TYPE.get(f.get('idFamilleCompte')) or Account.TYPE_UNKNOWN,
|
'type': self.FAMILY_TO_TYPE.get(f.get('idFamilleCompte')) or Account.TYPE_UNKNOWN,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue