MikeBrink / python-picnic-api

Unofficial Python wrapper for the Picnic API.
Apache License 2.0
53 stars 17 forks source link

Login-Problems for DE #8

Closed littleyoda closed 3 years ago

littleyoda commented 3 years ago

p = PicnicAPI("XXXX","XXX",'de')

even if I select "de" as the country, he tries to connect to "nl". A correction below, but I'm not sure it's the right approach. Therefore no PR.

--- a/python_picnic_api/client.py
+++ b/python_picnic_api/client.py
@@ -13,7 +13,7 @@ class PicnicAPI:
         self._username = username
         self._password = password
         self._base_url = _url_generator(
-            DEFAULT_URL, DEFAULT_COUNTRY_CODE, DEFAULT_API_VERSION
+            DEFAULT_URL, country_code, DEFAULT_API_VERSION
         )

         self.session = PicnicAPISession()
MikeBrink commented 3 years ago

Oops thats a stupid error from my side, I'll fix it tomorrow! Thanks for spotting the issue.