Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't print the exercises the migration can't find, not necessary

Roland Geider1902ed5cc927
diff --git a/wger/exercises/migrations/0011_auto_20201214_0033.py b/wger/exercises/migrations/0011_auto_20201214_0033.py
index 17ddd327b..b333c9bb6 100644
--- a/wger/exercises/migrations/0011_auto_20201214_0033.py
+++ b/wger/exercises/migrations/0011_auto_20201214_0033.py
@@ -381,7 +381,8 @@ def create_exercise_mapping(apps, schema_editor):
try:
exercise_objects.append(Exercise.objects.get(uuid=exercise_group[lang]))
except Exercise.DoesNotExist:
- print(exercise_group[lang], "does not exist")
+ pass
+ # print(exercise_group[lang], "does not exist")
if(len(exercise_objects) > 0):
exercise_base_main = exercise_objects[0].exercise_base