Skip to content

Commit

Permalink
Fixed missing get call
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberjunky committed May 18, 2021
1 parent f9fda01 commit 76b5ee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions garminconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def login(self):
self.logger.debug(
"Login to Garmin Connect using POST url %s", SIGNIN_URL)
try:
response = self.req.get(
SIGNIN_URL, headers=self.headers, params=params)

response = self.req.post(
SIGNIN_URL, headers=self.headers, params=params, data=data)
if response.status_code == 429:
Expand Down
2 changes: 1 addition & 1 deletion garminconnect/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
"""Python 3 API wrapper for Garmin Connect to get your statistics."""

__version__ = "0.1.20"
__version__ = "0.1.21"

0 comments on commit 76b5ee3

Please sign in to comment.