Support for accounts without "coming" in bnporc
This commit is contained in:
parent
ad588d5d1d
commit
879445ead2
1 changed files with 8 additions and 4 deletions
|
|
@ -49,6 +49,10 @@ class AccountsList(BasePage):
|
||||||
balance = balance.replace('.','').replace(',','.')
|
balance = balance.replace('.','').replace(',','.')
|
||||||
account.balance = float(balance)
|
account.balance = float(balance)
|
||||||
elif td.attrib.get('headers', '').startswith('Avenir'):
|
elif td.attrib.get('headers', '').startswith('Avenir'):
|
||||||
|
# Some accounts don't have a "coming"
|
||||||
|
if td.text.strip() == '-':
|
||||||
|
account.coming = 0.0
|
||||||
|
else:
|
||||||
a = td.findall('a')
|
a = td.findall('a')
|
||||||
coming = a[0].text
|
coming = a[0].text
|
||||||
coming = coming.replace('.','').replace(',','.')
|
coming = coming.replace('.','').replace(',','.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue