Self hosted FLOSS fitness/workout, nutrition and weight tracker
Correctly name variable
Roland Geiderc14ee7c2f08b
diff --git a/wger/exercises/management/commands/download-exercise-videos.py b/wger/exercises/management/commands/download-exercise-videos.pyindex d8282669c..cc3295a37 100644--- a/wger/exercises/management/commands/download-exercise-videos.py+++ b/wger/exercises/management/commands/download-exercise-videos.py@@ -43,7 +43,7 @@ from wger.exercises.models import ()-IMAGE_API = "{0}/api/v2/video/"+VIDEO_API = "{0}/api/v2/video/"class Command(BaseCommand):@@ -80,10 +80,10 @@ class Command(BaseCommand):headers = {'User-agent': default_user_agent('wger/{} + requests'.format(get_version()))}- # Get all images+ # Get all videospage = 1all_videos_processed = False- result = requests.get(IMAGE_API.format(remote_url), headers=headers).json()+ result = requests.get(VIDEO_API.format(remote_url), headers=headers).json()self.stdout.write('*** Processing videos ***')while not all_videos_processed:self.stdout.write('')