mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-03 07:23:22 +02:00
FEMAIgnore Enhancment
This commit is contained in:
@@ -533,9 +533,10 @@ def getIpawsAlert(lat=0, lon=0, shortAlerts = False):
|
||||
if (sameVal in mySAME) or (geocode_value in mySAME):
|
||||
# ignore the FEMA test alerts
|
||||
if ignoreFEMAtest:
|
||||
if "Test" in headline:
|
||||
logger.debug(f"System: Ignoring FEMA Test Alert: {headline} for {areaDesc}")
|
||||
continue
|
||||
for word in ignoreFEMAwords:
|
||||
if word.lower() in headline.lower():
|
||||
logger.debug(f"System: Ignoring FEMA Alert: {headline} containing {word} at {areaDesc}")
|
||||
continue
|
||||
|
||||
# add to alerts list
|
||||
alerts.append({
|
||||
|
||||
Reference in New Issue
Block a user