fix getting history on some special workflow

This commit is contained in:
Romain Bignon 2013-12-01 15:04:45 +01:00
commit b8a622590a
2 changed files with 2 additions and 3 deletions

View file

@ -125,8 +125,7 @@ class BanquePopulaire(BaseBrowser):
return None
def get_history(self, account, coming=False):
if not self.is_on_page(AccountsPage):
account = self.get_account(account.id)
account = self.get_account(account.id)
if coming:
params = account._coming_params

View file

@ -284,7 +284,7 @@ class AccountsPage(BasePage):
account._next_debit = None
account._params = None
account._coming_params = None
if balance != u'':
if balance != u'' and len(tds[3].xpath('.//a')) > 0:
account._params = params.copy()
account._params['dialogActionPerformed'] = 'SOLDE'
account._params['attribute($SEL_$%s)' % tr.attrib['id'].split('_')[0]] = tr.attrib['id'].split('_', 1)[1]