fix parsing of transaction amounts (strip nbsp)

This commit is contained in:
Romain Bignon 2014-10-07 12:25:34 +02:00
commit 7bb4aff1b3

View file

@ -107,6 +107,6 @@ class TransactionsPage(Page):
continue
t.parse(date, re.sub(r'[ ]+', ' ', raw))
t.amount = Decimal(div.xpath('.//span')[-1].text.strip().replace(' ', '').replace(',', ''))
t.amount = Decimal(div.xpath('.//span')[-1].text.strip().replace(' ', '').replace(u'\xa0', '').replace(',', ''))
yield t