Commit e71ae745 authored by Lucas Ficheux's avatar Lucas Ficheux Committed by Vincent A

[cragr] Corrected bug on diff_ratio

Corrected bug introduced in 8dd2dba1
The module still referred to diff_percent
parent d6e41e6a
......@@ -840,7 +840,7 @@ class BGPIInvestmentPage(LoggedPage, HTMLPage):
def obj_diff_ratio(self):
# Euro funds have '-' instead of a diff_percent value
# Euro funds have '-' instead of a diff_ratio value
if CleanText('.//span[@class="box"][span[span[text()="+/- value latente (%)"]]]/span[2]/span')(self) == '-':
return NotAvailable
return Eval(
......@@ -849,7 +849,7 @@ class BGPIInvestmentPage(LoggedPage, HTMLPage):
def obj_diff(self):
if Field('diff_percent')(self) == NotAvailable:
if Field('diff_ratio')(self) == NotAvailable:
return NotAvailable
return CleanDecimal.French('.//span[@class="box"][span[span[text()="+/- value latente"]]]/span[2]/span')(self)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment