new
This commit is contained in:
@@ -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)));
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user