correctly set IDs

This commit is contained in:
Romain Bignon 2015-07-25 11:09:34 +02:00
commit a9119fd665
2 changed files with 2 additions and 2 deletions

View file

@ -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,