diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -8,6 +8,7 @@ import ( "os" "github.com/grafana/pyroscope-go" + "github.com/martinlehoux/biking_home/backfill" "github.com/martinlehoux/biking_home/config" "github.com/martinlehoux/biking_home/mountain_pass" "github.com/martinlehoux/biking_home/ride" @@ -55,9 +56,7 @@ func runCommand(db *sql.DB, configPath string, appConfig config.Config, args []s } mountain_pass.ExtractOSM(db, args[1]) case "backfill": - ride.BackfillCmd(db) - case "climbs-backfill": - web.BackfillOfficialClimbAttemptsCmd(db, configPath) + backfill.Run(db, configPath) case "backtest": ride.BacktestCmd(db) case "elevation": @@ -89,8 +88,7 @@ Commands: serve start web server (default when no command given) fetch-osm download the France OSM PBF into france-latest.osm.pbf extract-osm <path> extract mountain passes from an OSM PBF file - backfill recompute all stored ride values - climbs-backfill record official climb attempts for every stored ride + backfill recompute stored ride values and record official climb attempts backtest run data benchmarks comparing computed values against stored reference values elevation analyse detect elevation outliers (tunnel spikes) elevation fix linearly fix elevation between anchors |
