Show airline counts on trip stats page
This commit is contained in:
parent
6d1b01485a
commit
1caf233075
2 changed files with 33 additions and 12 deletions
|
|
@ -30,8 +30,14 @@
|
|||
<span class="text-nowrap">{{ c.flag }} {{ c.name }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div>Flights in {{ year }}: {{ year_stats.flight_count }}</div>
|
||||
<div>Trains in {{ year }}: {{ year_stats.train_count }}</div>
|
||||
<div>
|
||||
Flight segments in {{ year }}: {{ year_stats.flight_count }}
|
||||
[ by airline:
|
||||
{% for airline, count in year_stats.airlines.most_common() %}
|
||||
{{ airline }}: {{ count }}{% if not loop.last %},{% endif %}
|
||||
{% endfor %} ]
|
||||
</div>
|
||||
<div>Trains segments 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue