Show number of flights and trains on travel stats page

Closes: #161
This commit is contained in:
Edward Betts 2024-06-17 16:28:14 +01:00
parent d5bf004912
commit 40578196bc
2 changed files with 9 additions and 0 deletions

View file

@ -28,6 +28,8 @@
{{ c.flag }} {{ c.name }}
{% endfor %}
</div>
<div>Flights in {{ year }}: {{ year_stats.flight_count }}</div>
<div>Trains in {{ year }}: {{ year_stats.train_count }}</div>
<div>Total distance in {{ year}}: {{ format_distance(year_stats.total_distance) }}</div>
{% for transport_type, distance in year_stats.distances_by_transport_type.items() %}
<div>