diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index e075eb1..2f2dd81 100644 Binary files a/users/__pycache__/views.cpython-38.pyc and b/users/__pycache__/views.cpython-38.pyc differ diff --git a/users/templates/users/base.html b/users/templates/users/base.html index e9f849c..51a4265 100644 --- a/users/templates/users/base.html +++ b/users/templates/users/base.html @@ -309,7 +309,6 @@ success: function( data ) { $("#searchres").empty(); - for (var i = 0; i < data['res'].length; i++) { id = data['res'][i]['id']; diff --git a/users/views.py b/users/views.py index 3a6cf57..963f5c2 100644 --- a/users/views.py +++ b/users/views.py @@ -293,9 +293,7 @@ def GlobalSearch(request): results = Standards.objects.filter(agency__pk=ag, public=True).filter(name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(content__contains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(area__name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(task__name__icontains=searchfor) | Standards.objects.filter(agency__pk=ag, public=True).filter(created_standard_by__last_name__icontains=searchfor)|Standards.objects.filter(agency__pk=ag, public=True).filter(created_standard_by__first_name__icontains=searchfor) results = list(results) - final_results = [] - i = 0 for ele in results: tempele = {}