fix notification template: delay_cause as reason, weather as live conditions
This commit is contained in:
@@ -67,8 +67,6 @@ def _template_notification(context: dict) -> str:
|
||||
"",
|
||||
]
|
||||
|
||||
if crew_notes_summary:
|
||||
lines.append(crew_notes_summary)
|
||||
if delay_cause:
|
||||
cause_text = {
|
||||
"WEATHER": "weather conditions along your route",
|
||||
@@ -77,7 +75,6 @@ def _template_notification(context: dict) -> str:
|
||||
"ATC": "air traffic control restrictions",
|
||||
"LATE_AIRCRAFT": "the late arrival of your inbound aircraft",
|
||||
}.get(delay_cause, f"{delay_cause.lower()}")
|
||||
if not crew_notes_summary:
|
||||
lines.append(f"Your flight is delayed due to {cause_text}.")
|
||||
if weather_summary:
|
||||
lines.append(f"Current conditions: {weather_summary}.")
|
||||
|
||||
Reference in New Issue
Block a user