Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannhegg committed Mar 21, 2025
1 parent f34b8db commit 7a6faf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/my_package/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def fetch_data(start_date, end_date, city_name):


# f-string url, to add the "custom" variables to the API-request
url = f"https://history.openweathermap.org/data/2.5/history/city?q={city_name},{"NO"}&units=metric&type=hour&start={start_date}&end={end_date}&appid={API_KEY}"
url = f"https://history.openweathermap.org/data/2.5/history/city?q={city_name},NO&units=metric&type=hour&start={start_date}&end={end_date}&appid={API_KEY}"

# Saves the API-request for the url
response = requests.get(url)
Expand Down

0 comments on commit 7a6faf5

Please sign in to comment.