diff options
Diffstat (limited to 'web/ride-filters.go')
| -rw-r--r-- | web/ride-filters.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/ride-filters.go b/web/ride-filters.go index 0bb97d8..8535756 100644 --- a/web/ride-filters.go +++ b/web/ride-filters.go @@ -6,6 +6,7 @@ import ( "strconv" "time" + "github.com/martinlehoux/biking_home/climb" "github.com/martinlehoux/biking_home/ride" ) @@ -417,7 +418,7 @@ func rideMatchesFilters(item ride.StoredRide, filters RideFilters) bool { } if filters.CotacolMinPoints != nil || filters.CotacolMaxPoints != nil { cotacol, ready := item.CotacolScore() - if !ready || item.CotacolAlgorithmVersion() != ride.CotacolAlgorithmVersion || item.DistanceM <= 0 { + if !ready || item.CotacolAlgorithmVersion() != climb.CotacolAlgorithmVersion || item.DistanceM <= 0 { return false } if filters.CotacolMinPoints != nil && cotacol < float64(*filters.CotacolMinPoints) { |
