From 8eabfaa9c4491597f603b8829f90467085298067 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 4 Jun 2025 10:37:58 -0700 Subject: [PATCH] enhance ignore logic --- modules/locationdata.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 065f6a4..6f0acca 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -547,10 +547,15 @@ def getIpawsAlert(lat=0, lon=0, shortAlerts = False): if (sameVal in mySAME) or (geocode_value in mySAME): # ignore the FEMA test alerts if ignoreFEMAenable: + ignore_alert = False for word in ignoreFEMAwords: if word.lower() in headline.lower(): logger.debug(f"System: Ignoring FEMA Alert: {headline} containing {word} at {areaDesc}") - continue + ignore_alert = True + break + + if ignore_alert: + continue # add to alerts list alerts.append({