Skip to content

Commit

Permalink
Add keyword parameter
Browse files Browse the repository at this point in the history
Probably some change in the requests package.
  • Loading branch information
bjin96 committed Oct 12, 2024
1 parent 199bb33 commit da48106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/weather_api_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def weather_api_request(
weather_variable: WeatherVariable,
api_uri: str
) -> pd.DataFrame:
api_response = requests.get(api_uri, parameters)
api_response = requests.get(api_uri, params=parameters)

if api_response.status_code != 200:
raise WeatherApiException(f'Failed to fetch weather data with: {api_response.json()["reason"]}')
Expand Down

0 comments on commit da48106

Please sign in to comment.