new
This commit is contained in:
@@ -35,7 +35,10 @@
|
||||
case "ms":
|
||||
return msToTime(rawValue, activity === Activity.ConeDrill);
|
||||
case "cm": {
|
||||
return String(Math.round(cmToIn(rawValue) * 10) / 10);
|
||||
const totalInches = cmToIn(rawValue);
|
||||
const feet = Math.floor(totalInches / 12);
|
||||
const inches = Math.round(totalInches % 12);
|
||||
return `${feet}'${inches}"`;
|
||||
}
|
||||
case "kg":
|
||||
return String(Math.round(kgToLb(rawValue)));
|
||||
|
||||
@@ -5255,10 +5255,10 @@
|
||||
},
|
||||
"levels": {
|
||||
"1": 200,
|
||||
"2": 214,
|
||||
"3": 224,
|
||||
"4": 234,
|
||||
"5": 245
|
||||
"2": 230,
|
||||
"3": 250,
|
||||
"4": 270,
|
||||
"5": 300
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -5268,11 +5268,11 @@
|
||||
"gender": "Female"
|
||||
},
|
||||
"levels": {
|
||||
"1": 150,
|
||||
"2": 164,
|
||||
"3": 174,
|
||||
"4": 184,
|
||||
"5": 194
|
||||
"1": 170,
|
||||
"2": 190,
|
||||
"3": 220,
|
||||
"4": 250,
|
||||
"5": 280
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Activity, Attribute, Gender, getAvgWeight, kgToLb, lbToKg, type Activit
|
||||
// Dash:
|
||||
// https://marathonhandbook.com/average-100-meter-time/
|
||||
// Broad Jump:
|
||||
//
|
||||
// https://nrpt.co.uk/training/tests/power/broad.htm
|
||||
|
||||
type LevelCalculatorConfig = {
|
||||
expandIters?: number;
|
||||
|
||||
@@ -81,7 +81,7 @@ export default class PrintfulService {
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
throw await FetchError.createAndParse("Failed to update Printful product", printfulProduct.sync_product?.name, res);
|
||||
throw await FetchError.createAndParse("Failed to update Printful product", res);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user