Adjust context size and pass it directly
This commit is contained in:
parent
8add25ac27
commit
4b99d7272c
|
@ -289,7 +289,7 @@ class DrilldownContextModal(APIView):
|
||||||
if request.resolver_match.url_name == "modal_context_table":
|
if request.resolver_match.url_name == "modal_context_table":
|
||||||
self.template_name = "partials/context_table.html"
|
self.template_name = "partials/context_table.html"
|
||||||
|
|
||||||
size = 20
|
size = 15
|
||||||
nicks_sensitive = None
|
nicks_sensitive = None
|
||||||
query = False
|
query = False
|
||||||
# Create the query params from the POST arguments
|
# Create the query params from the POST arguments
|
||||||
|
@ -356,6 +356,7 @@ class DrilldownContextModal(APIView):
|
||||||
|
|
||||||
query_params["sorting"] = "desc"
|
query_params["sorting"] = "desc"
|
||||||
# SAFE_PARAMS["sorting"] = "desc"
|
# SAFE_PARAMS["sorting"] = "desc"
|
||||||
|
query_params["size"] = size
|
||||||
|
|
||||||
annotate = False
|
annotate = False
|
||||||
if query_params["source"] == "irc":
|
if query_params["source"] == "irc":
|
||||||
|
@ -374,10 +375,10 @@ class DrilldownContextModal(APIView):
|
||||||
type=type,
|
type=type,
|
||||||
nicks=nicks_sensitive,
|
nicks=nicks_sensitive,
|
||||||
)
|
)
|
||||||
|
|
||||||
results = query_results(
|
results = query_results(
|
||||||
request,
|
request,
|
||||||
query_params,
|
query_params,
|
||||||
|
size=size,
|
||||||
annotate=annotate,
|
annotate=annotate,
|
||||||
custom_query=search_query,
|
custom_query=search_query,
|
||||||
reverse=True,
|
reverse=True,
|
||||||
|
|
Loading…
Reference in New Issue