carrefourbanque fix when account balance is negative
This commit is contained in:
parent
7142522b3d
commit
d4ebe70d5d
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class HomePage(LoggedPage, HTMLPage):
|
|||
|
||||
def obj_balance(self):
|
||||
if len(self.el.xpath('.//div[@class="catre_col_one"]/h2')) > 0:
|
||||
return CleanDecimal(Format('-%s', CleanText('.//div[@class="catre_col_one"]/h2')), replace_dots=True)(self)
|
||||
return -CleanDecimal(CleanText('.//div[@class="catre_col_one"]/h2'), replace_dots=True)(self)
|
||||
else:
|
||||
return Decimal('0')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue