Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

add url for when language code is not provided

Joshua Shelley1bb9419102bf
diff --git a/wger/nutrition/sync.py b/wger/nutrition/sync.py
index d3c24530b..facfe7cd9 100644
--- a/wger/nutrition/sync.py
+++ b/wger/nutrition/sync.py
@@ -233,6 +233,12 @@ def sync_ingredients(
server_url=remote_url,
query={'limit': API_MAX_ITEMS, 'language': language_id},
)
+ else:
+ url = make_uri(
+ INGREDIENTS_ENDPOINT,
+ server_url=remote_url,
+ query={'limit': API_MAX_ITEMS},
+ )
for data in get_paginated(url, headers=wger_headers()):
uuid = data['uuid']
name = data['name']