From ed9516cbcb3c5254980a9e1dba7d8fa5ea230b35 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 21 Aug 2026 19:30:50 +0200 Subject: Add distance filter to analytics and go fix to the check gate --- web/views.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/views.go') diff --git a/web/views.go b/web/views.go index 9771a4d..7a5a461 100644 --- a/web/views.go +++ b/web/views.go @@ -28,6 +28,7 @@ type RidesPageData struct { type AnalyticsPageData struct { Points []AnalyticsPoint + Filter RideFilterView } type AnalyticsPoint struct { @@ -427,6 +428,10 @@ func formatClimbCount(count int) string { return fmt.Sprintf("%d", count) } +func formatRideCount(count int) string { + return fmt.Sprintf("%d", count) +} + func formatProfileDistance(distanceKm float64) string { return fmt.Sprintf("%.1f km", distanceKm) } -- cgit v1.3