fix parsing of euro founds
This commit is contained in:
parent
87637d5b94
commit
83d5cb1d0b
1 changed files with 4 additions and 1 deletions
|
|
@ -212,7 +212,10 @@ class AccountsList(LoggedPage, HTMLPage):
|
||||||
obj_valuation = CleanDecimal('.//dl[has-class("ligne-montant")]/dd | .//dd[@data-show="header" and not(contains(text(), "%"))]', replace_dots=True)
|
obj_valuation = CleanDecimal('.//dl[has-class("ligne-montant")]/dd | .//dd[@data-show="header" and not(contains(text(), "%"))]', replace_dots=True)
|
||||||
|
|
||||||
def obj_unitprice(self):
|
def obj_unitprice(self):
|
||||||
if 'eurossima' in self.el.get('class'):
|
if 'eurossima' in self.el.get('class') or \
|
||||||
|
'fondsEuro' in self.el.get('class'):
|
||||||
|
# in this case, the content of field is:
|
||||||
|
# <span data-sort="pm_value" class="pmvalue positive">NOT_A_NUMBER</span>
|
||||||
return self.obj.unitvalue
|
return self.obj.unitvalue
|
||||||
|
|
||||||
percent = CleanDecimal('.//span[has-class("pmvalue")]', replace_dots=True)(self)
|
percent = CleanDecimal('.//span[has-class("pmvalue")]', replace_dots=True)(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue