WT1.1.18+8 repeats MAX

This commit is contained in:
bossanyit
2021-06-07 17:28:25 +02:00
parent f5ef0ed9ce
commit a8728edae2
10 changed files with 73 additions and 44 deletions
+7 -3
View File
@@ -77,10 +77,14 @@ class TrainingPlanRepository {
detail.parallel = elem.parallel;
detail.restingTime = elem.restingTime;
detail.exerciseType = Cache().getExerciseTypeById(detail.exerciseTypeId!);
if (detail.exerciseType!.unitQuantityUnit != null) {
detail = getCalculatedWeightRepeats(elem.exerciseTypeId, detail);
if (elem.weight == -1) {
if (detail.exerciseType!.unitQuantityUnit != null) {
detail = getCalculatedWeightRepeats(elem.exerciseTypeId, detail);
} else {
detail.weight = 0;
}
} else {
detail.weight = 0;
detail.weight = elem.weight;
}
//print("Detail $detail exerciseType: ${detail.exerciseType}");