Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Variations don't have a UUID

Roland Geiderb65b57141d88
diff --git a/wger/exercises/management/commands/read-exercise-cleanup.py b/wger/exercises/management/commands/read-exercise-cleanup.py
index 6d2cb29ed..62363e00e 100644
--- a/wger/exercises/management/commands/read-exercise-cleanup.py
+++ b/wger/exercises/management/commands/read-exercise-cleanup.py
@@ -273,7 +273,7 @@ class Command(BaseCommand):
if variation_id:
try:
- Variation.objects.filter(uuid=variation_id).delete()
+ Variation.objects.filter(id=variation_id).delete()
self.stdout.write(f'* Deleted variation {variation_id}')
except Exercise.DoesNotExist:
pass