Flight arrive can be missing

This commit is contained in:
Edward Betts 2024-03-12 15:10:17 +00:00
parent 9d691bee40
commit e3cae68d2f

View file

@ -200,10 +200,12 @@
<span>{{ item.airline_name }} ({{ item.airline }})</span>
{{ display_datetime(item.depart) }}
{% if item.arrive %}
&rarr;
{{ item.arrive.strftime("%H:%M %z") }}
<span>{{ ((item.arrive - item.depart).total_seconds() // 60) | int }} mins</span>
{% endif %}
<span>{{ item.airline }}{{ item.flight_number }}</span>
</div>