fix parsing of huge account balances

This commit is contained in:
Romain Bignon 2014-10-08 13:02:34 +02:00
commit e877f8faa6

View file

@ -45,7 +45,7 @@ class AccountsPage(Page):
while account.id in names:
account.id = account.id + '1'
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']
yield account