Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Formatting

Roland Geider46e268cd426b
diff --git a/wger/nutrition/sync.py b/wger/nutrition/sync.py
index a64b69c81..4b8fbe94e 100644
--- a/wger/nutrition/sync.py
+++ b/wger/nutrition/sync.py
@@ -25,17 +25,20 @@ from django.db import IntegrityError
import requests
# wger
-from wger.nutrition.api.endpoints import IMAGE_ENDPOINT, INGREDIENTS_ENDPOINT
+from wger.nutrition.api.endpoints import (
+ IMAGE_ENDPOINT,
+ INGREDIENTS_ENDPOINT,
+)
from wger.nutrition.models import (
Image,
Ingredient,
Source,
)
from wger.utils.constants import (
+ API_MAX_ITEMS,
CC_BY_SA_3_LICENSE_ID,
DOWNLOAD_INGREDIENT_OFF,
DOWNLOAD_INGREDIENT_WGER,
- API_MAX_ITEMS,
)
from wger.utils.requests import (
get_paginated_generator,
@@ -209,13 +212,11 @@ def sync_ingredients(
'language_id': data['language'],
'created': data['created'],
'license_id': data['license'],
-
'license_object_url': data['license_object_url'],
'license_author': data['license_author_url'],
'license_author_url': data['license_author_url'],
'license_title': data['license_title'],
'license_derivative_source_url': data['license_derivative_source_url'],
-
'energy': data['energy'],
'carbohydrates': data['carbohydrates'],
'carbohydrates_sugar': data['carbohydrates_sugar'],
diff --git a/wger/nutrition/tests/test_sync.py b/wger/nutrition/tests/test_sync.py
index c579ab641..1d474f6e2 100644
--- a/wger/nutrition/tests/test_sync.py
+++ b/wger/nutrition/tests/test_sync.py
@@ -12,7 +12,6 @@
#
# You should have received a copy of the GNU Affero General Public License
-
# Standard Library
from decimal import Decimal
from unittest.mock import patch