diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-23 19:21:36 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-23 19:21:36 -0500 |
| commit | 87d241a10f55793e1add6b16933748cc64932173 (patch) | |
| tree | fe9463a5c3ba6b55288c699093228d97c113758d /app/tables | |
| parent | eff104b1e2840ad40131e7ab811448a34a896f9f (diff) | |
| download | Strengthy-87d241a10f55793e1add6b16933748cc64932173.tar.xz Strengthy-87d241a10f55793e1add6b16933748cc64932173.zip | |
More progress on forms
Diffstat (limited to 'app/tables')
| -rw-r--r-- | app/tables/workout.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tables/workout.py b/app/tables/workout.py index 164f547..564caf1 100644 --- a/app/tables/workout.py +++ b/app/tables/workout.py @@ -41,8 +41,8 @@ class Workout(db.Model): # Create exercises for exercise in exercises: - type = ExerciseType.TIME if exercise['type'] == 'time'else ExerciseType.REPS; - self.exercises.append(Exercise(exercise['name'], exercise['sets'], exercise['units'], type)) + type = ExerciseType.TIME if exercise['exercise_type'] == 'time' else ExerciseType.REPS; + self.exercises.append(Exercise(exercise['exercise_name'], exercise['sets'], exercise['units'], type)) def __repr__(self): return f'<Workout {self.name}>' |
