Orangefish commited on
Commit
cc82983
1 Parent(s): e2fc5e0

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -12,7 +12,7 @@ def get_weather_csv():
12
  return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/helsinki?unitGroup=metric&include=days&key=FYYH5HKD9558HBXD2D6KWXDGH&contentType=csv').csv()
13
 
14
  def get_weather_json_quick(date):
15
- return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/helsinki/{date}?unitGroup=metric&include=days&key=J7TT2WGMUNNHD8JBEDXAJJXB2&contentType=json').json()
16
 
17
  def get_air_quality_data():
18
  AIR_QUALITY_API_KEY = os.getenv('AIR_QUALITY_API_KEY')
 
12
  return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/helsinki?unitGroup=metric&include=days&key=FYYH5HKD9558HBXD2D6KWXDGH&contentType=csv').csv()
13
 
14
  def get_weather_json_quick(date):
15
+ return requests.get(f'https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/helsinki/{date}/{date}?unitGroup=metric&include=days&key=J7TT2WGMUNNHD8JBEDXAJJXB2&contentType=json').json()
16
 
17
  def get_air_quality_data():
18
  AIR_QUALITY_API_KEY = os.getenv('AIR_QUALITY_API_KEY')