Skip food safety alert for webex and sms

This commit is contained in:
2026-08-23 17:06:59 +02:00
parent 9053351674
commit e7f6374200
+8 -4
View File
@@ -323,6 +323,14 @@ def alert():
alert_type = alert_info.get("type", "Unknown")
alert_message = alert_info.get("message", "No message provided")
webex_room_id = None
room_link = None
room_title = None
webex_status = "skipped"
sms_sent = False
if alert_type != "COOKING_SAFETY":
client_name = f"Unknown Client (Orchestrator {orchestrator_id})" if orchestrator_id else "Unknown Client"
client_email = None
client_phone = None
@@ -343,11 +351,7 @@ def alert():
client_email = contact_info.get("email")
client_phone = contact_info.get("phone")
webex_room_id = None
room_title = f"Support - {client_name}"
room_link = None
webex_status = "skipped"
sms_sent = False
three_minutes_ago = datetime.now(timezone.utc) - timedelta(minutes=3)