Update locationdata.py

This commit is contained in:
SpudGunMan
2024-07-10 16:21:01 -07:00
parent ccf0ef5e33
commit 66d19f13f6
-7
View File
@@ -130,13 +130,6 @@ def get_weather(lat=0, lon=0, unit=0):
alert = alerts[0]
alert_num = alerts[1]
if alert == "No weather alerts found" or alert == "":
alert = ""
alert_num = 0
print("No Alerts")
else:
alert_num = int(alerts[1])
if alert_num > 0:
# add the alert count warning to the weather
weather = str(alert_num) + " local alerts!\n" + weather + "\n" + alert