From 09df761cb91462a9e998b39424edb0536af9d985 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Mon, 4 Feb 2019 18:51:26 +0100 Subject: [PATCH] [bolden] fix liquidities as label changed --- modules/bolden/pages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bolden/pages.py b/modules/bolden/pages.py index 81fb1fa2c6..9d5ce4433a 100644 --- a/modules/bolden/pages.py +++ b/modules/bolden/pages.py @@ -61,8 +61,8 @@ class item(ItemElement): obj_label = 'Compte Bolden' obj_type = Account.TYPE_MARKET obj_currency = 'EUR' - obj_balance = CleanDecimal.French('//div[p[has-class("investor-state") and contains(text(),"Total compte Bolden :")]]/p[has-class("investor-status")]', replace_dots=True) - obj_valuation_diff = CleanDecimal.French('//div[has-class("rent-total")]', replace_dots=True) + obj_balance = CleanDecimal.French('//div[p[has-class("investor-state") and contains(text(),"Total compte Bolden :")]]/p[has-class("investor-status")]') + obj_valuation_diff = CleanDecimal.French('//div[has-class("rent-total")]') @method class iter_investments(TableElement): @@ -93,7 +93,7 @@ def obj__docurl(self): return urljoin(self.page.url, Link('.//a')(TableCell('doc')(self)[0])) def get_liquidity(self): - return CleanDecimal('//div[p[contains(text(), "Fonds disponibles")]]/p[@class="investor-status strong"]', replace_dots=True)(self.doc) + return CleanDecimal.French('//div[p[contains(text(), "Fonds disponibles")]]/p[has-class("investor-status")]')(self.doc) class OperationsPage(LoggedPage, HTMLPage): -- GitLab