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)