fix parsing banquepopulaire accounts with no link
This commit is contained in:
parent
6de98cff0c
commit
636c5c4bd5
1 changed files with 1 additions and 2 deletions
|
|
@ -80,8 +80,7 @@ class AccountsPage(BasePage):
|
|||
account.label = u' '.join([u''.join([txt.strip() for txt in tds[1].itertext()]),
|
||||
u''.join([txt.strip() for txt in tds[2].itertext()])]).strip()
|
||||
account.type = account_type
|
||||
link = tds[3].find('a')
|
||||
account.balance = Decimal(FrenchTransaction.clean_amount(link.find('span').text))
|
||||
account.balance = Decimal(FrenchTransaction.clean_amount(u''.join([txt.strip() for txt in tds[3].itertext()])))
|
||||
account._params = params.copy()
|
||||
account._params['dialogActionPerformed'] = 'SOLDE'
|
||||
account._params['attribute($SEL_$%s)' % tr.attrib['id'].split('_')[0]] = tr.attrib['id'].split('_', 1)[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue