Commit e7fdd72e authored by Maxime Pommier's avatar Maxime Pommier Committed by Vincent A

[axabanque] Get the real card number

parent ae831fa3
......@@ -197,12 +197,12 @@ class AccountsPage(LoggedPage, MyHTMLPage):
# get accounts id = args['paramNumContrat'] + args.get('paramNumContrat', '') = args['paramNumCompte'] + args.get('paramNumContrat', '')
if 'Visa' in account.label:
card_id ='(\d+)', box.xpath('./td[2]')[0].text.strip())
if card_id: +=
account.number = Regexp(CleanText('./td[contains(@class,"libelle")]', replace=[(' ', ''), ('x', 'X')]), r'(X{12}\d{4})')(box) += Regexp(CleanText('./td[contains(@class,"libelle")]'), r'(\d+)')(box)
if u'Valorisation' in account.label or u'Liquidités' in account.label: += args[next(k for k in args.keys() if "_idcl" in k)].split('Jsp')[-1]
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