Skip to content

Commit

Permalink
problem: using legacy api as default; _get function does not retry wi…
Browse files Browse the repository at this point in the history
…th params
  • Loading branch information
wesyoung committed Jul 31, 2024
1 parent c3ab99a commit f74f27d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alphahunt_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _get(self, url, params=None, retries: int = 20):
sleep_time = 5
sleep(sleep_time)
for _ in range(retries):
rv = self.session.get(f"{self.remote}")
rv = self.session.get(url, params=params)

if rv.status_code >= 300:
logger.error(rv.text)
Expand Down
2 changes: 1 addition & 1 deletion alphahunt_sdk/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

TOKEN = os.getenv("ALPHAHUNT_TOKEN")
REMOTE = os.getenv("ALPHAHUNT_REMOTE", "https://api.alphahunt.io")
API_VERSION = os.getenv("ALPHAHUNT_API_VERSION", "3")
API_VERSION = os.getenv("ALPHAHUNT_API_VERSION", "4")

HEADERS = {
"User-Agent": f"alphahuntsdk-py/{VERSION}",
Expand Down

0 comments on commit f74f27d

Please sign in to comment.