Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add "warmup" to list of set types

Roland Geider8124a6ba57a9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dad0d3955..ce808e96c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,3 +7,5 @@ The unused `/api/v2/ingredient/search/` API endpoint has been removed.
<https://github.com/wger-project/wger/pull/2222> Add flag for exercise images indicating
whether the image was AI generated. This is currently not used, but can be used in the
future if we rework the images,
+
+Add "warmup" to list of set types.
diff --git a/wger/manager/models/day.py b/wger/manager/models/day.py
index 74700dc76..37ae64d58 100644
--- a/wger/manager/models/day.py
+++ b/wger/manager/models/day.py
@@ -154,7 +154,6 @@ class Day(models.Model):
slots = getattr(self, 'prefetched_slots', self.slots.all())
for slot in slots:
- # for slot in self.slots.all():
slot_data = SlotData(
comment=slot.comment,
sets=[s.data for s in slot.set_data(iteration)],
diff --git a/wger/manager/models/slot_entry.py b/wger/manager/models/slot_entry.py
index 362a061dd..63829f2a4 100644
--- a/wger/manager/models/slot_entry.py
+++ b/wger/manager/models/slot_entry.py
@@ -68,7 +68,16 @@ class ConfigType(enum.Enum):
class ExerciseType(models.TextChoices):
+ """
+ Types of exercise (set)
+
+ This list needs to be kept in sync with the react and flutter apps:
+ * public/locales/en/translation.json, src/components/WorkoutRoutines/models/SlotEntry.ts and
+ * lib/l10n/app_en.arb, lib/models/workouts/slot_entry.dart
+ """
+
NORMAL = 'normal'
+ WARMUP = 'warmup'
DROPSET = 'dropset'
MYO = 'myo'
PARTIAL = 'partial'