fix getting transactions of secondary accounts

This commit is contained in:
Romain Bignon 2012-02-26 19:03:49 +01:00
commit 0badd945a9
3 changed files with 9 additions and 4 deletions

View file

@ -38,6 +38,7 @@ class AccountsList(BasePage):
if not 'class' in tr.attrib and tr.find('td') is not None and tr.find('td').attrib.get('class', '') == 'typeTitulaire':
account = Account()
account.id = tr.xpath('.//td[@class="libelleCompte"]/input')[0].attrib['id'][len('libelleCompte'):]
account.link_id = account.id
if len(str(account.id)) == 23:
account.id = str(account.id)[5:21]