Self hosted FLOSS fitness/workout, nutrition and weight tracker
Use correct dictionary key when downloading exercise images
Roland Geider19f0d40e7ac1
diff --git a/wger/exercises/management/commands/download-exercise-images.py b/wger/exercises/management/commands/download-exercise-images.pyindex b22887d2d..48817ded0 100644--- a/wger/exercises/management/commands/download-exercise-images.py+++ b/wger/exercises/management/commands/download-exercise-images.py@@ -105,7 +105,7 @@ class Command(BaseCommand):self.stdout.write(f'Processing image {image_uuid}')try:- exercise_base = ExerciseBase.objects.get(id=image_data['exercise'])+ exercise_base = ExerciseBase.objects.get(id=image_data['exercise_base'])except ExerciseBase.DoesNotExist:self.stdout.write(' Remote exercise base not found in local DB, skipping...')continue