Commit e1812b01 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[hsbc] Added default account name when label is empty

Some accounts have a balance but no label on the website.
To avoid empty account labels I added "Compte sans libellé" as a default
value.
parent 92af0ea8
......@@ -158,7 +158,9 @@ class AccountsPage(GenericLandingPage):
def condition(self):
return len(self.el.xpath('./td')) > 2
obj_label = Label(CleanText('./td[1]/a'))
def obj_label(self):
return Label(CleanText('./td[1]/a'))(self) or 'Compte sans libellé'
obj_coming = Env('coming')
obj_currency = FrenchTransaction.Currency('./td[2]')
......
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