add wind speed for !vreme

This commit is contained in:
fram3d 2024-03-04 14:44:23 +01:00
parent d52b4ac5e5
commit 72c474e97f
Signed by: fram3d
GPG Key ID: 938920E709EEA32A

View File

@ -50,7 +50,7 @@ def getDmzTasks(url):
return e return e
def get_weather(city:str) -> str: def get_weather(city:str) -> str:
url = f"https://wttr.in/{city}?format=3" url = f"https://wttr.in/{city}?format=4"
if not city.replace(" ","").isalpha(): if not city.replace(" ","").isalpha():
return "no such city" return "no such city"
resp = requests.get(url) resp = requests.get(url)