Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Formatting

Roland Geider7a9403159385
diff --git a/wger/exercises/management/commands/delete-unused-exercises.py b/wger/exercises/management/commands/delete-unused-exercises.py
index 718448f84..0f40b5783 100644
--- a/wger/exercises/management/commands/delete-unused-exercises.py
+++ b/wger/exercises/management/commands/delete-unused-exercises.py
@@ -21,7 +21,10 @@ from django.core.management.base import BaseCommand
# wger
from wger.core.models import Language
from wger.exercises.models import ExerciseBase
-from wger.manager.models import Setting, WorkoutLog
+from wger.manager.models import (
+ Setting,
+ WorkoutLog,
+)
from wger.utils.constants import ENGLISH_SHORT_NAME
diff --git a/wger/exercises/management/commands/exercises-health-check.py b/wger/exercises/management/commands/exercises-health-check.py
index f6b7c81e3..bf47658d9 100644
--- a/wger/exercises/management/commands/exercises-health-check.py
+++ b/wger/exercises/management/commands/exercises-health-check.py
@@ -98,7 +98,6 @@ class Command(BaseCommand):
f' Deleting translation {exercise.uuid} for language ID {exercise.language_id}...'
)
-
exercise.delete()
self.stdout.write(
f' Deleting translation {exercise.uuid} for language ID {exercise.language_id}...'
diff --git a/wger/exercises/management/commands/read-exercise-cleanup.py b/wger/exercises/management/commands/read-exercise-cleanup.py
index 9a2a3e30d..6d2cb29ed 100644
--- a/wger/exercises/management/commands/read-exercise-cleanup.py
+++ b/wger/exercises/management/commands/read-exercise-cleanup.py
@@ -249,8 +249,7 @@ class Command(BaseCommand):
csv_file = open('exercises_cleanup_duplicates.csv', 'r', newline='')
file_reader = csv.DictReader(csv_file)
self.stdout.write(
- self.style.
- WARNING(f'---> Deleting duplicate bases and translations now...')
+ self.style.WARNING(f'---> Deleting duplicate bases and translations now...')
)
for row in file_reader: