Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Increase number of returned results in the API ingredient search

Roland Geidere4a6f7ed169a
diff --git a/wger/nutrition/api/views.py b/wger/nutrition/api/views.py
index 7b0ac078d..ee5e639f8 100644
--- a/wger/nutrition/api/views.py
+++ b/wger/nutrition/api/views.py
@@ -232,7 +232,7 @@ def search(request):
else:
query = query.filter(name__icontains=term)
- for ingredient in query[:100]:
+ for ingredient in query[:150]:
if hasattr(ingredient, 'image'):
image_obj = ingredient.image
image = image_obj.image.url