exclude lift-assisted ski types from ascent totals
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Lift-assisted downhill types: their recorded elevation gain comes from
|
||||
// lifts, so it doesn't count toward ascent totals. Touring variants
|
||||
// ("ski touring", "backcountry ski") earn their metres and do count.
|
||||
export const LIFT_ASSISTED_TYPES = ['ski', 'alpine ski', 'downhill ski', 'snowboard'];
|
||||
|
||||
export function countsTowardAscent(type: string): boolean {
|
||||
return !LIFT_ASSISTED_TYPES.includes(type.toLowerCase().trim());
|
||||
}
|
||||
Reference in New Issue
Block a user