type audit script, fix misclassified activities, alpineski excluded from ascent
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
// 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'];
|
||||
// ("skitour", "backcountry ski", "langlauf") earn their metres and do count.
|
||||
export const LIFT_ASSISTED_TYPES = [
|
||||
'ski',
|
||||
'alpine ski',
|
||||
'alpineski',
|
||||
'downhill ski',
|
||||
'snowboard'
|
||||
];
|
||||
|
||||
export function countsTowardAscent(type: string): boolean {
|
||||
return !LIFT_ASSISTED_TYPES.includes(type.toLowerCase().trim());
|
||||
|
||||
Reference in New Issue
Block a user