axabanque fix duplicate accounts id
This commit is contained in:
parent
deba3961c6
commit
614b030aee
1 changed files with 4 additions and 0 deletions
|
|
@ -161,6 +161,10 @@ class AccountsPage(BasePage):
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
account.id = args['paramNumCompte'] + args['paramNumContrat']
|
account.id = args['paramNumCompte'] + args['paramNumContrat']
|
||||||
|
if 'Visa' in account.label:
|
||||||
|
card_id = re.search('(\d+)', box.xpath('./td[2]')[0].text.strip())
|
||||||
|
if card_id:
|
||||||
|
account.id += card_id.group(1)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
account.id = args['paramNumCompte']
|
account.id = args['paramNumCompte']
|
||||||
account_type_str = table.attrib['class'].split(' ')[-1][len('tableaux-comptes-'):]
|
account_type_str = table.attrib['class'].split(' ')[-1][len('tableaux-comptes-'):]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue