Bug fix trip stats page

This commit is contained in:
Edward Betts 2024-10-16 06:36:26 +01:00
parent 81b0234794
commit a1cdf62eef

View file

@ -22,6 +22,7 @@ import agenda.data
import agenda.error_mail import agenda.error_mail
import agenda.fx import agenda.fx
import agenda.holidays import agenda.holidays
import agenda.stats
import agenda.thespacedevs import agenda.thespacedevs
import agenda.trip import agenda.trip
import agenda.utils import agenda.utils
@ -619,7 +620,7 @@ def trip_stats() -> str:
conferences = sum(len(item.conferences) for item in trip_list) conferences = sum(len(item.conferences) for item in trip_list)
yearly_stats = agenda.trip.calculate_yearly_stats(trip_list) yearly_stats = agenda.stats.calculate_yearly_stats(trip_list)
return flask.render_template( return flask.render_template(
"trip/stats.html", "trip/stats.html",