Zoro-147 commited on
Commit
5666340
·
verified ·
1 Parent(s): c971d4c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -16,8 +16,8 @@ def get_current_weather(location: str) -> str:
16
 
17
  try:
18
  response = requests.get(
19
- "http://api.weatherapi.com/v1/current.json",
20
- params={"key": api_key, "q": location, "aqi": "no"},
21
  timeout=10
22
  )
23
  response.raise_for_status()
 
16
 
17
  try:
18
  response = requests.get(
19
+ "https://weatherapi-com.p.rapidapi.com/current.json?q=53.1%2C-0.13",
20
+ params={"key": api_key, "q": location},
21
  timeout=10
22
  )
23
  response.raise_for_status()