WT1.1.18+2 Training Plan days, skip
This commit is contained in:
@@ -38,12 +38,10 @@ class WorkoutTreeRepository with Logging {
|
||||
exerciseTree.sort((a, b) => a.sort!.compareTo(b.sort!));
|
||||
|
||||
exerciseTree.forEach((treeItem) async {
|
||||
//log(" -- TreeItem " + treeItem.toJson().toString() + " active " + treeItem.active.toString());
|
||||
if (treeItem.active == true) {
|
||||
String treeName = isEnglish! ? treeItem.name : treeItem.nameTranslation;
|
||||
|
||||
bool is1RM =
|
||||
treeItem.name.contains("Muscle") || treeItem.name.contains("Shape") || treeItem.name.contains("Strength") ? true : false;
|
||||
bool is1RM = treeItem.internalName != null && treeItem.internalName!.contains("one_rep_max") ? true : false;
|
||||
if (!is1RM) {
|
||||
is1RM = this.isParent1RM(treeItem.parentId);
|
||||
}
|
||||
@@ -69,7 +67,8 @@ class WorkoutTreeRepository with Logging {
|
||||
treeItem.name,
|
||||
parent != null ? parent.name : "",
|
||||
parent != null ? parent.nameEnglish : "",
|
||||
treeItem.sort!);
|
||||
treeItem.sort!,
|
||||
treeItem.internalName != null ? treeItem.internalName! : "");
|
||||
menuItem = this.setWorkoutTypes(menuItem, treeItem);
|
||||
this.tree[treeItem.name + "_" + treeItem.parentId.toString()] = menuItem;
|
||||
//log("WorkoutMenuTree item ${menuItem.toJson()}");
|
||||
@@ -110,7 +109,8 @@ class WorkoutTreeRepository with Logging {
|
||||
exerciseType.name,
|
||||
parent != null ? parent.name : "",
|
||||
parent != null ? parent.nameEnglish : "",
|
||||
0);
|
||||
0,
|
||||
"");
|
||||
this.tree[exerciseType.name] = menuItem;
|
||||
if (isRunning || is1RM) {
|
||||
menuAsExercise.add(menuItem);
|
||||
|
||||
Reference in New Issue
Block a user