fix getting history on some special workflow
This commit is contained in:
parent
ee00884a6a
commit
b8a622590a
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue