Yasaman commited on
Commit
4eb7bd5
1 Parent(s): ce66cc0

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +2 -2
functions.py CHANGED
@@ -122,9 +122,9 @@ def get_weather_json(city, date, WEATHER_API_KEY):
122
  return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/{city.lower()}/{date}?unitGroup=metric&include=days&key={WEATHER_API_KEY}&contentType=json').json()
123
 
124
 
125
- def get_weather_data(city_name, date):
126
  WEATHER_API_KEY = os.getenv('WEATHER_API_KEY')
127
- json = get_weather_json(city_name, date, WEATHER_API_KEY)
128
  data = json['days'][0]
129
 
130
  return [
 
122
  return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/{city.lower()}/{date}?unitGroup=metric&include=days&key={WEATHER_API_KEY}&contentType=json').json()
123
 
124
 
125
+ def get_weather_data(date):
126
  WEATHER_API_KEY = os.getenv('WEATHER_API_KEY')
127
+ json = get_weather_json("Malmo", date, WEATHER_API_KEY)
128
  data = json['days'][0]
129
 
130
  return [