strip agency and key from account IDs
This commit is contained in:
parent
70034d002d
commit
e1e20a44fe
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ class AccountsList(BasePage):
|
||||||
if not 'class' in tr.attrib and tr.find('td') is not None and tr.find('td').attrib.get('class', '') == 'typeTitulaire':
|
if not 'class' in tr.attrib and tr.find('td') is not None and tr.find('td').attrib.get('class', '') == 'typeTitulaire':
|
||||||
account = Account()
|
account = Account()
|
||||||
account.id = tr.xpath('.//td[@class="libelleCompte"]/input')[0].attrib['id'][len('libelleCompte'):]
|
account.id = tr.xpath('.//td[@class="libelleCompte"]/input')[0].attrib['id'][len('libelleCompte'):]
|
||||||
|
if len(str(account.id)) == 23:
|
||||||
|
account.id = str(account.id)[5:21]
|
||||||
|
|
||||||
account.label = tr.xpath('.//td[@class="libelleCompte"]/a')[0].text.strip()
|
account.label = tr.xpath('.//td[@class="libelleCompte"]/a')[0].text.strip()
|
||||||
|
|
||||||
tds = tr.findall('td')
|
tds = tr.findall('td')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue