mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-13 21:31:22 +02:00
enhance VolcanoAlert
prevent stale records from being rebroadcast
This commit is contained in:
@@ -641,7 +641,7 @@ def get_volcano_usgs(lat=0, lon=0):
|
||||
cap_severity = alert['cap_severity']
|
||||
synopsis = alert['synopsis']
|
||||
# format Alert
|
||||
alerts += f"🌋🚨: {volcano_name} {alert_level} {color_code} {cap_severity}\n{synopsis}\n"
|
||||
alerts += f"🌋🚨: {volcano_name}, {alert_level} {color_code}, {cap_severity}.\n{synopsis}\n"
|
||||
else:
|
||||
logger.debug(f"System: USGS volcano alert not in range: {alert['volcano_name_appended']}")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user