Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add comments
Roland Geider8202f6b3b828
diff --git a/wger/exercises/management/commands/sync-exercises.py b/wger/exercises/management/commands/sync-exercises.pyindex d36119c2d..f96be1ae9 100644--- a/wger/exercises/management/commands/sync-exercises.py+++ b/wger/exercises/management/commands/sync-exercises.py@@ -84,6 +84,8 @@ class Command(BaseCommand):self.sync_exercises(headers, remote_url)def sync_exercises(self, headers: dict, remote_url: str):+ """Synchronize the exercises from the remote server"""+self.stdout.write('*** Synchronizing exercises...')page = 1all_exercise_processed = False@@ -143,6 +145,8 @@ class Command(BaseCommand):self.stdout.write(self.style.SUCCESS('done!\n'))def sync_equipment(self, headers: dict, remote_url: str):+ """Synchronize the equipment from the remote server"""+self.stdout.write('*** Synchronizing equipment...')result = requests.get(EQUIPMENT_API.format(remote_url), headers=headers).json()for equipment_data in result['results']:@@ -160,6 +164,8 @@ class Command(BaseCommand):self.stdout.write(self.style.SUCCESS('done!\n'))def sync_muscles(self, headers: dict, remote_url: str):+ """Synchronize the muscles from the remote server"""+self.stdout.write('*** Synchronizing muscles...')result = requests.get(MUSCLE_API.format(remote_url), headers=headers).json()for muscle_data in result['results']:@@ -195,6 +201,8 @@ class Command(BaseCommand):self.stdout.write(self.style.SUCCESS('done!\n'))def sync_categories(self, headers: dict, remote_url: str):+ """Synchronize the categories from the remote server"""+self.stdout.write('*** Synchronizing categories...')result = requests.get(CATEGORY_API.format(remote_url), headers=headers).json()for category_data in result['results']: