fix when there are several amounts for a card
This commit is contained in:
parent
7f882e4f87
commit
57436e0899
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class AccountsPage(BredBasePage):
|
|||
|
||||
cols = tr.findall('td')
|
||||
|
||||
amount = Decimal(u''.join([txt.strip() for txt in cols[-1].itertext()]).strip(' EUR').replace(' ', '').replace(',', '.'))
|
||||
amount = sum([Decimal(txt.strip(' EUR').replace(' ', '').replace(',', '.')) for txt in cols[-1].itertext() if len(txt.strip()) > 0])
|
||||
a = cols[0].find('a')
|
||||
if a is None:
|
||||
# this line is a cards line. attach it on the first account.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue