Self hosted FLOSS fitness/workout, nutrition and weight tracker
Reformat and remove unused imports
Roland Geiderfde12ad09ab3
diff --git a/wger/nutrition/management/commands/import-off-products.py b/wger/nutrition/management/commands/import-off-products.pyindex ddf072635..ffad7af79 100644--- a/wger/nutrition/management/commands/import-off-products.py+++ b/wger/nutrition/management/commands/import-off-products.py@@ -28,6 +28,7 @@ from wger.nutrition.management.products import ()from wger.nutrition.off import extract_info_from_off+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/management/commands/import-usda-products.py b/wger/nutrition/management/commands/import-usda-products.pyindex 41e685da0..50087128c 100644--- a/wger/nutrition/management/commands/import-usda-products.py+++ b/wger/nutrition/management/commands/import-usda-products.py@@ -21,15 +21,14 @@ from zipfile import ZipFile# wgerfrom wger.core.models import Language-from wger.nutrition.dataclasses import IngredientDatafrom wger.nutrition.management.products import (ImportProductCommand,Mode,)-from wger.nutrition.models import Ingredientfrom wger.nutrition.usda import extract_info_from_usdafrom wger.utils.constants import ENGLISH_SHORT_NAME+logger = logging.getLogger(__name__)@@ -48,8 +47,8 @@ class Command(ImportProductCommand):dest='dataset',type=str,help='What dataset to download, this value will be appended to '- '"https://fdc.nal.usda.gov/fdc-datasets/". Consult '- 'https://fdc.nal.usda.gov/download-datasets.html for current file names',+ '"https://fdc.nal.usda.gov/fdc-datasets/". Consult '+ 'https://fdc.nal.usda.gov/download-datasets.html for current file names',)def handle(self, **options):diff --git a/wger/nutrition/management/products.py b/wger/nutrition/management/products.pyindex 5799fb7a6..c7197bb96 100644--- a/wger/nutrition/management/products.py+++ b/wger/nutrition/management/products.py@@ -35,6 +35,7 @@ from wger.nutrition.dataclasses import IngredientDatafrom wger.nutrition.models import Ingredientfrom wger.utils.requests import wger_headers+logger = logging.getLogger(__name__)diff --git a/wger/nutrition/models/ingredient.py b/wger/nutrition/models/ingredient.pyindex 9e3e8edb7..00ef106b0 100644--- a/wger/nutrition/models/ingredient.py+++ b/wger/nutrition/models/ingredient.py@@ -55,6 +55,7 @@ from wger.utils.requests import wger_user_agent# Localfrom .ingredient_category import IngredientCategory+logger = logging.getLogger(__name__)