Handle rail journeys without specific time

This commit is contained in:
Edward Betts 2024-03-11 10:53:55 +01:00
parent 1ed6c50ad8
commit f1338e5970
3 changed files with 12 additions and 7 deletions

View file

@ -107,7 +107,7 @@
<div class="grid-item">
{% if item.arrive %}
{{ item.arrive.strftime("%H:%M") }}
{% if item.arrive.date() != item.depart.date() %}+1 day{% endif %}
{% if item.depart != item.arrive and item.arrive.date() != item.depart.date() %}+1 day{% endif %}
{% endif %}
</div>
<div class="grid-item">{{ ((item.arrive - item.depart).total_seconds() // 60) | int }} mins</div>