Mark Attwood writes:
I love the ease of use of the site, however one suggestion, would it be possible to add the distance in each discipline so it self calculates the totals for week, month etc - similar to the hours?
Base2race now includes distance totals for Run, Bike and Swim workouts in the week view summary. To support this we've added "distance units" to the Workout form.
To be included in the totals, workouts must have a simple numeric value in the distance field along with valid units (meters, kilometres, yards or miles). You can mix and match units in the week view (e.g. a 10k run and a 10 mile run).
As the distance field until now has been a free text field, there is also text option. When text is selected you can type anything you want in there. I currently (and intend to continue to) abuse the distance field all the time, with the majority of my current bike workouts at the moment having a distance of either "Spin" or "Turbo". I also put "Pilates", "Yoga", and a whole load of other things in there.
Where units are set to "text", workouts are not included in the summary. Note: In order to preserve existing data, existing workouts have distance units currently set to "text". As such these workouts will not appear in the distance summary until they are modified. An exclamation mark is shown in the totals to highlight that the total distance may not accurately reflect the weeks true effort.
New Swim workouts have a default distance units of meters. Run and Bike workouts have a default distance units of km. Other workouts have a default distance unit of text.
The bad news...
To calculate totals for existing workouts, they must be modified from something:
Distance: "4 miles", Units: "text"
to:
Distance: "4", Units: "miles"
Not a big deal, but not too much fun if you've got a lot of workouts. So....
The good news...
I am looking to create a script to do change for you for most cases. As I don't want to change your data without your explicit permission this will be an "opt in" script (i.e. you need to request to be included in the run).
Don't worry about it just now. I will provide a mechanism up to easily request an “opt in”, and will run the script a few times over the next few weeks. More details to follow in the next few days...