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:
|
||||
index = query_params["index"]
|
||||
print("INDEX IS HERE", index)
|
||||
if index == "main":
|
||||
index = settings.OPENSEARCH_INDEX_MAIN
|
||||
else:
|
||||
if request.user.is_superuser:
|
||||
if index == "meta":
|
||||
print("INDEX IS META")
|
||||
index = settings.OPENSEARCH_INDEX_META
|
||||
elif 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}
|
||||
else:
|
||||
index = settings.OPENSEARCH_INDEX_MAIN
|
||||
print("RUNNING QUERY", index, search_query)
|
||||
results = run_main_query(
|
||||
client,
|
||||
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)
|
||||
if annotate:
|
||||
annotate_results(results_parsed)
|
||||
print("FNL", results_parsed)
|
||||
|
||||
context = {
|
||||
"object_list": results_parsed,
|
||||
|
|
Loading…
Reference in New Issue