Remove old unused code.

This commit is contained in:
Edward Betts 2024-11-13 14:36:19 +00:00
parent b3e7070b84
commit 40bac83790

View file

@ -580,9 +580,6 @@ def trip_stats() -> str:
route_distances = agenda.travel.load_route_distances(app.config["DATA_DIR"]) route_distances = agenda.travel.load_route_distances(app.config["DATA_DIR"])
trip_list = get_trip_list(route_distances) trip_list = get_trip_list(route_distances)
# 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 trip_list) conferences = sum(len(item.conferences) for item in trip_list)
yearly_stats = agenda.stats.calculate_yearly_stats(trip_list) yearly_stats = agenda.stats.calculate_yearly_stats(trip_list)