From 31ce2a1d5ff5746249cd4de96762f5740aff907a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sat, 8 Aug 2026 22:29:49 +0200 Subject: perf: Load ride values from SQLite --- web/views.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'web/views.go') diff --git a/web/views.go b/web/views.go index a19ced9..a9ffffa 100644 --- a/web/views.go +++ b/web/views.go @@ -12,9 +12,6 @@ type RideView struct { rides.Ride Cotacol string CotacolPer100Km string - cotacolScore float64 - cotacolPer100Km float64 - cotacolReady bool } type RideSort struct { @@ -66,6 +63,8 @@ func (s RideSort) databaseColumn() (rides.SortColumn, bool) { rideSortDistance: rides.SortDistance, rideSortMovingTime: rides.SortMovingTime, rideSortElevation: rides.SortElevation, + rideSortCotacol: rides.SortCotacol, + rideSortCotacolKm: rides.SortCotacolKm, } column, found := columns[s.Column] return column, found -- cgit v1.2.3