Remove some debugging statements
This commit is contained in:
parent
9a92429291
commit
c012792c42
|
@ -365,13 +365,11 @@ def query_results(request, query_params, size=None, annotate=True, custom_query=
|
||||||
|
|
||||||
if "index" in query_params:
|
if "index" in query_params:
|
||||||
index = query_params["index"]
|
index = query_params["index"]
|
||||||
print("INDEX IS HERE", index)
|
|
||||||
if index == "main":
|
if index == "main":
|
||||||
index = settings.OPENSEARCH_INDEX_MAIN
|
index = settings.OPENSEARCH_INDEX_MAIN
|
||||||
else:
|
else:
|
||||||
if request.user.is_superuser:
|
if request.user.is_superuser:
|
||||||
if index == "meta":
|
if index == "meta":
|
||||||
print("INDEX IS META")
|
|
||||||
index = settings.OPENSEARCH_INDEX_META
|
index = settings.OPENSEARCH_INDEX_META
|
||||||
elif index == "int":
|
elif index == "int":
|
||||||
index = settings.OPENSEARCH_INDEX_INT
|
index = settings.OPENSEARCH_INDEX_INT
|
||||||
|
@ -385,7 +383,6 @@ def query_results(request, query_params, size=None, annotate=True, custom_query=
|
||||||
return {"message": message, "class": message_class}
|
return {"message": message, "class": message_class}
|
||||||
else:
|
else:
|
||||||
index = settings.OPENSEARCH_INDEX_MAIN
|
index = settings.OPENSEARCH_INDEX_MAIN
|
||||||
print("RUNNING QUERY", index, search_query)
|
|
||||||
results = run_main_query(
|
results = run_main_query(
|
||||||
client,
|
client,
|
||||||
request.user, # passed through run_main_query to filter_blacklisted
|
request.user, # passed through run_main_query to filter_blacklisted
|
||||||
|
@ -408,7 +405,6 @@ def query_results(request, query_params, size=None, annotate=True, custom_query=
|
||||||
results_parsed = parse_results(results)
|
results_parsed = parse_results(results)
|
||||||
if annotate:
|
if annotate:
|
||||||
annotate_results(results_parsed)
|
annotate_results(results_parsed)
|
||||||
print("FNL", results_parsed)
|
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"object_list": results_parsed,
|
"object_list": results_parsed,
|
||||||
|
|
Loading…
Reference in New Issue