From 7a6faf55386617293cdf9c71e592506deecc7624 Mon Sep 17 00:00:00 2001 From: Hanne Heggdal Date: Fri, 21 Mar 2025 12:21:55 +0100 Subject: [PATCH] minor changes --- src/my_package/fetch_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/my_package/fetch_data.py b/src/my_package/fetch_data.py index edbc9bc..a3097ef 100644 --- a/src/my_package/fetch_data.py +++ b/src/my_package/fetch_data.py @@ -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)