From 3dfc2a55be31701415be4d937d408dd232ce8717 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 9 Jul 2024 10:46:02 -0700 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 2c765ec..20ffaf4 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -121,10 +121,10 @@ def get_weather(lat=0, lon=0, unit=0): weather = weather[:-1] # get any alerts and return the count - alert_num = getWeatherAlerts(lat, lon)[1] + alert, alert_num = getWeatherAlerts(lat, lon) if alert_num > 0: # add the alert count warning to the weather - weather = str(alert_num) + " local alerts!\n" + weather + weather = str(alert_num) + " local alerts!\n" + weather + "\n" + alert return weather