@rasifix/orienteering-utils 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/ranking.js +1 -0
- package/package.json +1 -1
package/lib/utils/ranking.js
CHANGED
|
@@ -348,6 +348,7 @@ function defineLegProperties(legs) {
|
|
|
348
348
|
var selected = leg.runners
|
|
349
349
|
.slice(0, Math.min(leg.runners.length, 5))
|
|
350
350
|
.map(function (runner) { return runner.split; });
|
|
351
|
+
console.log("leg " + code + " selected splits: ", selected);
|
|
351
352
|
// only if there are valid splits for this leg
|
|
352
353
|
if (selected.length > 0) {
|
|
353
354
|
leg.idealSplit = Math.round(selected.reduce(sum) / selected.length);
|