Commit 15c58c08 authored by Romain Bignon's avatar Romain Bignon

optimization: don't reload accounts list page

parent 6d6109fc
......@@ -60,7 +60,8 @@ class BNPorc(mechanize.Browser):
raise LoginError('Login or password incorrect.')
def get_accounts_list(self):
self.location('/NSFR?Action=DSP_VGLOBALE')
if not self.isOnPage(pages.AccountsList):
self.location('/NSFR?Action=DSP_VGLOBALE')
return self.page.get_list()
def location(self, *args, **kwargs):
......
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