WT 1.1.21 Custom Training Plan fix

This commit is contained in:
bossanyit
2021-07-29 22:07:03 +02:00
parent 67924cf0a2
commit 6b25fdfe0e
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ class Cache with Logging {
static String baseUrlLive = 'https://aitrainer.info:8943/api/';
static String baseUrlTest = 'https://aitrainer.info:8843/api/';
late String baseUrl;
static final String mediaUrl = 'https://aitrainer.info:4343/media/';
static final String mediaUrl = 'https://admin.aitrainer.app/media/';
static final String username = 'bosi';
static final String password = 'andio2009';
@@ -55,7 +55,7 @@ class CustomerTrainingPlanDetails {
this.customerTrainingPlanDetailsId = json['customerTrainingPlanDetailsId'] == "null" || json['customerTrainingPlanDetailsId'] == null
? 0
: json['customerTrainingPlanDetailsId'];
this.trainingPlanDetailsId = json['trainingPlanDetailsId'];
this.trainingPlanDetailsId = json['trainingPlanDetailsId'] == "null" ? 0 : json['trainingPlanDetailsId'];
this.exerciseTypeId = json['exerciseTypeId'];
this.set = json['set'];
this.repeats = json['repeats'] == "null" ? -1 : json['repeats'];