Handle rail journeys without specific time
This commit is contained in:
parent
1ed6c50ad8
commit
f1338e5970
3 changed files with 12 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue