WT 1.1.24+2 Weight calculation
This commit is contained in:
@@ -43,6 +43,7 @@ class MauticRepository {
|
||||
}
|
||||
mautic.fitnessLevel = customerRepository.customer!.fitnessLevel == null ? "" : customerRepository.customer!.fitnessLevel!;
|
||||
mautic.goal = customerRepository.customer!.goal == null ? "" : customerRepository.customer!.goal!;
|
||||
mautic.language = AppLanguage().appLocal.languageCode;
|
||||
|
||||
await MauticApi().sendMauticForm(mautic);
|
||||
}
|
||||
|
||||
@@ -102,6 +102,9 @@ class TrainingPlanRepository {
|
||||
//print("Detail $detail exerciseType: ${detail.exerciseType}");
|
||||
|
||||
detail.state = ExercisePlanDetailState.start;
|
||||
if (detail.weight != null && detail.weight! > 0) {
|
||||
detail.base1RM = Common.calculate1RM(detail.weight!, detail.repeats!.toDouble());
|
||||
}
|
||||
plan.details.add(detail);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user