Commit 76ea813c authored by Xavier Hurtis's avatar Xavier Hurtis Committed by hydrargyrum

[cragr] Transactions not fetched correction

In CragrRegion.iter_perimeter_accounts a call to self.accounts.go() caused the expiration of the form obtained. Making it impossible to fetch the transactions of some accounts.
We fix this with the stay_or_go method.
parent 4ff3c04b
......@@ -338,7 +338,7 @@ class CragrRegion(LoginBrowser):
self.accounts.stay_or_go()
self.page.set_cragr_code()
for account in self.page.iter_accounts():
self.accounts.go()
self.accounts.stay_or_go()
if iban and account._form:
# Refresh account form in case it expired
refreshed_account = find_object(self.page.iter_accounts(), id=account.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment