From e3cae68d2f669c0022b26c532f5bb03b28412b3a Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 12 Mar 2024 15:10:17 +0000 Subject: [PATCH] Flight arrive can be missing --- templates/trip_page.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/trip_page.html b/templates/trip_page.html index ac8a381..1743951 100644 --- a/templates/trip_page.html +++ b/templates/trip_page.html @@ -200,10 +200,12 @@ {{ item.airline_name }} ({{ item.airline }}) ✨ {{ display_datetime(item.depart) }} + {% if item.arrive %} → {{ item.arrive.strftime("%H:%M %z") }} ✨ {{ ((item.arrive - item.depart).total_seconds() // 60) | int }} mins + {% endif %} ✨ {{ item.airline }}{{ item.flight_number }}