Edit distance on activities

You can now edit the distance of an activity. This is useful for indoor rides done with GPS left on and other similar issues. This has no impact other than correcting weekly distances totals and so on.

4 Likes

Thanks, David. You are doing an amazing amount of work on this website: I – and I’m sure the rest of us – are very grateful to you.

1 Like

Hi @david,
I’m trying to automate filling out distance for indoor cycling workouts I do on a “dumb” spin-bike at my local gym. I’ve used 30 kph as a ballpark speed, as this is usually what I can do on a Zone 2 ride on a flat course.
I’ve created a custom activity field, that I want to use to override the icu distance, but it is not working. Any clue as to what I am missing here?
I probably also have to put in a statement that if distance is not present, fill out activity.icu_distance.

{
let v = activity.elapsed_time*8.33 // 8,33 m/s - 30 km/t
activity.icu_distance = v
v/1000
}