maintains same as before only special changed

This commit is contained in:
SpudGunMan
2025-11-05 13:21:22 -08:00
parent 60a6244c69
commit edb3208e2c
+4 -4
View File
@@ -442,14 +442,14 @@ def getWeatherAlertsNOAA(lat=0, lon=0, useDefaultLatLon=False):
# adds location data which is too much data?
alerts += f"{main_alert}. {area_desc.replace(' ', '')}"
# Only add headline if not already used as main_alert
if nws_headline and main_alert != nws_headline:
alerts += f" ALERT: {nws_headline}"
# if nws_headline and main_alert != nws_headline:
# alerts += f" ALERT: {nws_headline}"
alerts += "\n"
else:
alerts += f"{main_alert}"
# Only add headline if not already used as main_alert
if nws_headline and main_alert != nws_headline:
alerts += f" ALERT: {nws_headline}"
# if nws_headline and main_alert != nws_headline:
# alerts += f" ALERT: {nws_headline}"
alerts += "\n"
if alerts == "" or alerts == None: