From b6540a1d20b03d979abd107d0e94ca3635bd75f8 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 16 Dec 2024 09:05:59 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8improve=20EAS=20duplicates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/locationdata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 32856cc..1d5e4a5 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -393,7 +393,8 @@ def alertBrodcast(): wxAlertCache = "" return False # broadcast the alerts send to wxBrodcastCh - elif currentAlert[0] != wxAlertCache: + elif currentAlert[0] not in wxAlertCache: + # Check if the current alert is not in the weather alert cache logger.debug("Location:Broadcasting weather alerts") wxAlertCache = currentAlert[0] return currentAlert