Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Jan 3, 2023
1 parent 92084d9 commit 89cff95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lidlplus/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ def _register_link(self):
"Country": self._country,
"language": f"{self._language}-{self._country}",
}
params = "&".join([f"{key}={value}" for key, value in args])
params = "&".join([f"{key}={value}" for key, value in args.items()])
return f"{self._register_oauth_client()}&{params}"

def login(self, phone, password, verify_token_func, **kwargs):
"""Simulate app auth"""
if verify_mode := kwargs.get("verify_mode", "phone") not in ["phone", "email"]:
if (verify_mode := kwargs.get("verify_mode", "phone")) not in ["phone", "email"]:
raise ValueError('Only "phone" or "email" supported')
browser = self._get_browser(headless=kwargs.get("headless", True))
browser.get(self._register_link)
Expand Down

0 comments on commit 89cff95

Please sign in to comment.