fix parsing of huge account balances
This commit is contained in:
parent
c2654ba06d
commit
e877f8faa6
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class AccountsPage(Page):
|
||||||
while account.id in names:
|
while account.id in names:
|
||||||
account.id = account.id + '1'
|
account.id = account.id + '1'
|
||||||
names.add(account.id)
|
names.add(account.id)
|
||||||
account.balance = Decimal(li.cssselect('p.row-right')[0].text.strip().replace(' ', '').replace(',', ''))
|
account.balance = Decimal(li.cssselect('p.row-right')[0].text.strip().replace(' ', '').replace(u'\xa0', '').replace(',', ''))
|
||||||
account._link = li.attrib['href']
|
account._link = li.attrib['href']
|
||||||
yield account
|
yield account
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue