Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions8c323c1c0347
diff --git a/wger/exercises/sync.py b/wger/exercises/sync.py
index acdb9e3fc..5a7d7c47d 100644
--- a/wger/exercises/sync.py
+++ b/wger/exercises/sync.py
@@ -300,6 +300,7 @@ def handle_deleted_entries(
style_fn=lambda x: x,
):
if not print_fn:
+
def print_fn(_):
return None
diff --git a/wger/nutrition/management/commands/sync-ingredients.py b/wger/nutrition/management/commands/sync-ingredients.py
index 0965c222b..f149607a1 100644
--- a/wger/nutrition/management/commands/sync-ingredients.py
+++ b/wger/nutrition/management/commands/sync-ingredients.py
@@ -49,7 +49,7 @@ class Command(BaseCommand):
dest='remote_url',
default=settings.WGER_SETTINGS['WGER_INSTANCE'],
help=f'Remote URL to fetch the ingredients from (default: WGER_SETTINGS'
- f'["WGER_INSTANCE"] - {settings.WGER_SETTINGS["WGER_INSTANCE"]})'
+ f'["WGER_INSTANCE"] - {settings.WGER_SETTINGS["WGER_INSTANCE"]})'
)
def handle(self, **options):
diff --git a/wger/nutrition/tasks.py b/wger/nutrition/tasks.py
index 8e3b569c0..6e9457d9f 100644
--- a/wger/nutrition/tasks.py
+++ b/wger/nutrition/tasks.py
@@ -30,6 +30,7 @@ from wger.nutrition.sync import (
sync_ingredients,
)
+
logger = logging.getLogger(__name__)