Flight arrive can be missing
This commit is contained in:
parent
9d691bee40
commit
e3cae68d2f
|
@ -200,10 +200,12 @@
|
|||
<span>{{ item.airline_name }} ({{ item.airline }})</span>
|
||||
✨
|
||||
{{ display_datetime(item.depart) }}
|
||||
{% if item.arrive %}
|
||||
→
|
||||
{{ 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>
|
||||
|
|
Loading…
Reference in a new issue