From 10120734d39b20a268aea1dd69abe79f3b2d637d Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 31 Jul 2024 22:44:42 -0700 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 30bd5ef..681e79d 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -138,7 +138,7 @@ def get_weather(lat=0, lon=0, unit=0): alert = alerts[0] alert_num = alerts[1] - if alert_num > 0: + if int(alert_num) > 0: # add the alert count warning to the weather weather = str(alert_num) + " local alerts!\n" + weather + "\n" + alert