summaryrefslogtreecommitdiff
path: root/web/views.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-08 22:29:49 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-08 22:29:49 +0200
commit31ce2a1d5ff5746249cd4de96762f5740aff907a (patch)
tree2a52c7c4b69f7b82836504bcac5344171581102e /web/views.go
parentd463633ecdc66cc4bedd6e5d1267f0eb69493f38 (diff)
perf: Load ride values from SQLite
Diffstat (limited to 'web/views.go')
-rw-r--r--web/views.go5
1 files changed, 2 insertions, 3 deletions
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