This commit is contained in:
Dominic Ferrando
2025-10-15 18:01:53 -04:00
parent 44de0d9f64
commit eb8a2ab933
4 changed files with 15 additions and 12 deletions
+4 -1
View File
@@ -35,7 +35,10 @@
case "ms": case "ms":
return msToTime(rawValue, activity === Activity.ConeDrill); return msToTime(rawValue, activity === Activity.ConeDrill);
case "cm": { 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": case "kg":
return String(Math.round(kgToLb(rawValue))); return String(Math.round(kgToLb(rawValue)));
+9 -9
View File
@@ -5255,10 +5255,10 @@
}, },
"levels": { "levels": {
"1": 200, "1": 200,
"2": 214, "2": 230,
"3": 224, "3": 250,
"4": 234, "4": 270,
"5": 245 "5": 300
} }
}, },
{ {
@@ -5268,11 +5268,11 @@
"gender": "Female" "gender": "Female"
}, },
"levels": { "levels": {
"1": 150, "1": 170,
"2": 164, "2": 190,
"3": 174, "3": 220,
"4": 184, "4": 250,
"5": 194 "5": 280
} }
} }
] ]
+1 -1
View File
@@ -8,7 +8,7 @@ import { Activity, Attribute, Gender, getAvgWeight, kgToLb, lbToKg, type Activit
// Dash: // Dash:
// https://marathonhandbook.com/average-100-meter-time/ // https://marathonhandbook.com/average-100-meter-time/
// Broad Jump: // Broad Jump:
// // https://nrpt.co.uk/training/tests/power/broad.htm
type LevelCalculatorConfig = { type LevelCalculatorConfig = {
expandIters?: number; expandIters?: number;
+1 -1
View File
@@ -81,7 +81,7 @@ export default class PrintfulService {
}); });
if (!res.ok) { 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);
} }
} }
} }