Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actions0b3fad8eb5fd
diff --git a/wger/exercises/management/commands/sync-exercises.py b/wger/exercises/management/commands/sync-exercises.pyindex 15385438b..d36119c2d 100644--- a/wger/exercises/management/commands/sync-exercises.py+++ b/wger/exercises/management/commands/sync-exercises.py@@ -177,7 +177,12 @@ class Command(BaseCommand):muscle.name_en = muscle_name_enmuscle.save()except Muscle.DoesNotExist:- muscle = Muscle(id=muscle_id, name=muscle_name, is_front=muscle_is_front, name_en=muscle_name_en)+ muscle = Muscle(+ id=muscle_id,+ name=muscle_name,+ is_front=muscle_is_front,+ name_en=muscle_name_en+ )muscle.save()self.stdout.write(self.style.WARNING(diff --git a/wger/exercises/migrations/0017_muscle_name_en.py b/wger/exercises/migrations/0017_muscle_name_en.pyindex d0db7f28c..35c5ad432 100644--- a/wger/exercises/migrations/0017_muscle_name_en.py+++ b/wger/exercises/migrations/0017_muscle_name_en.py@@ -18,6 +18,7 @@ muscle_names = [(16, 'Lower back'),]+def set_names(apps, schema_editor):Muscle = apps.get_model('exercises', 'Muscle')for mapping in muscle_names:@@ -28,6 +29,7 @@ def set_names(apps, schema_editor):except Muscle.DoesNotExist:pass+class Migration(migrations.Migration):dependencies = [@@ -38,8 +40,12 @@ class Migration(migrations.Migration):migrations.AddField(model_name='muscle',name='name_en',- field=models.CharField(default='', help_text='A more basic name for the muscle',- max_length=50, verbose_name='Alternative name'),+ field=models.CharField(+ default='',+ help_text='A more basic name for the muscle',+ max_length=50,+ verbose_name='Alternative name'+ ),),migrations.RunPython(set_names),]