fix parsing of transaction amounts (strip nbsp)
This commit is contained in:
parent
e0d2d33299
commit
7bb4aff1b3
1 changed files with 1 additions and 1 deletions
|
|
@ -107,6 +107,6 @@ class TransactionsPage(Page):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
t.parse(date, re.sub(r'[ ]+', ' ', raw))
|
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
|
yield t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue