parent
efae1b9b14
commit
17eca6a95a
3 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue