Fix some strange effects with login
This commit is contained in:
parent
34a71f9ef8
commit
8c0dbe18f0
2 changed files with 12 additions and 9 deletions
|
|
@ -41,8 +41,13 @@ class ChampslibresBackend(BaseBackend, ICapBook):
|
|||
BROWSER = ChampslibresBrowser
|
||||
|
||||
def create_default_browser(self):
|
||||
return self.create_browser(self.config['login'].get(),
|
||||
browser = self.create_browser(self.config['login'].get(),
|
||||
self.config['password'].get())
|
||||
# we have to force the login before to lauch any actions
|
||||
browser.login()
|
||||
return browser
|
||||
|
||||
|
||||
|
||||
def get_rented(self):
|
||||
for book in self.browser.get_rented_books_list():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue