fix crash when there is more data in the cell
This commit is contained in:
parent
a9957967b5
commit
6b54cd6259
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class AccountMarket(Page):
|
||||||
inv.id = inv.code = self.parser.tocleanstring(isin_div[0])
|
inv.id = inv.code = self.parser.tocleanstring(isin_div[0])
|
||||||
|
|
||||||
inv.quantity = Decimal(cells[1])
|
inv.quantity = Decimal(cells[1])
|
||||||
inv.unitprice = Decimal(cells[2])
|
inv.unitprice = Decimal(cells[2].xpath('text()')[0])
|
||||||
inv.unitvalue = Decimal(cells[3])
|
inv.unitvalue = Decimal(cells[3])
|
||||||
inv.valuation = Decimal(cells[4])
|
inv.valuation = Decimal(cells[4])
|
||||||
inv.diff = Decimal(cells[5])
|
inv.diff = Decimal(cells[5])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue