Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show all results, no need to cut off (specially with the ingredients)

Roland Geidera72dac1dedb6
diff --git a/exercises/views.py b/exercises/views.py
index caa436902..ca2749408 100644
--- a/exercises/views.py
+++ b/exercises/views.py
@@ -268,7 +268,7 @@ def exercise_search(request):
# Perform the search
q = request.GET.get('term', '')
- exercises = Exercise.objects.filter(name__icontains = q )[:20]
+ exercises = Exercise.objects.filter(name__icontains = q )
# AJAX-request, this comes from the autocompleter. Create a list and send it back as JSON
if request.is_ajax():
diff --git a/nutrition/views.py b/nutrition/views.py
index 89babf247..e506987be 100644
--- a/nutrition/views.py
+++ b/nutrition/views.py
@@ -398,7 +398,7 @@ def ingredient_search(request):
# Perform the search
q = request.GET.get('term', '')
- ingredients = Ingredient.objects.filter(name__icontains = q )[:20]
+ ingredients = Ingredient.objects.filter(name__icontains = q )
# AJAX-request, this comes from the autocompleter. Create a list and send it back as JSON
if request.is_ajax():