Travel stats to show number of conference stats

Closes: #167
This commit is contained in:
Edward Betts 2024-07-10 19:28:56 +01:00
parent efae1b9b14
commit 17eca6a95a
3 changed files with 9 additions and 0 deletions

View file

@ -590,6 +590,7 @@ def trip_stats() -> str:
today = date.today()
past = [item for item in trip_list if (item.end or item.start) < today]
conferences = sum(len(item.conferences) for item in past)
yearly_stats = agenda.trip.calculate_yearly_stats(past)
@ -599,6 +600,7 @@ def trip_stats() -> str:
total_distance=calc_total_distance(past),
distances_by_transport_type=sum_distances_by_transport_type(past),
yearly_stats=yearly_stats,
conferences=conferences,
)