Skip to content
Snippets Groups Projects
Commit 9a71d156 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Path fix!

parent 1607166b
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ def get_weather_data():
# Input check
if longitude is None or latitude is None:
return "BAD REQUEST: longitude (%s) and/or latitude (%s) is not set" % (longitude, latitude), 403
wd_file = open(SITE_ROOT + "/data_files/2021_apelsvoll_redigert.json")
wd_file = open(SITE_ROOT + "/../data_files/2021_apelsvoll_redigert.json")
weather_data = WeatherData(**json.load(wd_file))
wd_file.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment