Skip to content

Commit

Permalink
Add API key
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronreidsmith committed Oct 30, 2023
1 parent ae4ca54 commit 9dbc5e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/downloads_badges.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def get_default_value(downloads):

# Open a session to save time
session = requests.Session()
session.headers.update({"X-Api-Key": os.getenv("PEPY_API_KEY")})

# Get the data for both the legacy namespace and our current one
pyramid_arima = json.loads(session.get('https://api.pepy.tech/api/v2/projects/pyramid-arima').text)
Expand Down

0 comments on commit 9dbc5e4

Please sign in to comment.