🚨improve EAS duplicates

This commit is contained in:
SpudGunMan
2024-12-16 09:05:59 -08:00
parent 87d29d123f
commit b6540a1d20
+2 -1
View File
@@ -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