0xffan commited on
Commit
575aa0f
·
1 Parent(s): 64f6f8a

Issue fixes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def get_aqi(city:str, state:str, country:str)-> str:
50
 
51
  response = requests.request("GET", url, headers=headers, data=payload)
52
 
53
- data_json = response.json
54
  if data_json.status == "success":
55
  return f"The current air quality in {city} is {data_json.current.pollution.aqius}."
56
  else:
 
50
 
51
  response = requests.request("GET", url, headers=headers, data=payload)
52
 
53
+ data_json = response.json()
54
  if data_json.status == "success":
55
  return f"The current air quality in {city} is {data_json.current.pollution.aqius}."
56
  else: