From 3e92d1709725784bd9bc27cc314b3ab095cb8afd Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 9 Aug 2022 07:20:30 +0100 Subject: [PATCH] Bump context results size --- core/lib/opensearch.py | 2 -- core/views/ui/drilldown.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index bff8449..389df10 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -346,9 +346,7 @@ def query_results(request, query_params, size=None, annotate=True, custom_query= query = query_params["query"] search_query = construct_query(query, size) else: - print("NO QUERY") if custom_query: - print("CUSTOM") search_query = custom_query if add_bool: for item in add_bool: diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index c4fd35d..094c68a 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -244,7 +244,7 @@ class DrilldownContextModal(APIView): # return JsonResponse({"success": False}) num = None index = "main" - size = 10 + size = 20 # Check right fields exist if "net" not in request.data: return JsonResponse({"success": False})