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":
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)));
+9 -9
View File
@@ -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
}
}
]
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);
}
}
}