enhance ignore logic

This commit is contained in:
SpudGunMan
2025-06-04 10:37:58 -07:00
parent 8b94dc8111
commit 8eabfaa9c4
+6 -1
View File
@@ -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({