Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

style: ruff formatting: - ruff format && isort .

Ewin73a065088bd94
diff --git a/wger/nutrition/extract_info/off.py b/wger/nutrition/extract_info/off.py
index a80137283..23d3189a3 100644
--- a/wger/nutrition/extract_info/off.py
+++ b/wger/nutrition/extract_info/off.py
@@ -126,7 +126,7 @@ def extract_info_from_off(product_data: dict, language: int) -> IngredientData:
# If product name is still not found, throw error
if not name:
raise KeyError('Missing required product name')
-
+
common_name = product_data.get('generic_name', '')
# If the energy is not available in kcal, convert from kJ