diff --git a/core/lib/manticore.py b/core/lib/manticore.py index 11648a4..b2cab76 100644 --- a/core/lib/manticore.py +++ b/core/lib/manticore.py @@ -7,6 +7,7 @@ from math import floor, log10 from pprint import pprint import manticoresearch +import requests import ujson from django.conf import settings from siphashc import siphash @@ -14,7 +15,7 @@ from siphashc import siphash from core import r from core.lib.processing import annotate_results, filter_blacklisted, parse_results from core.views import helpers -import requests + logger = logging.getLogger(__name__) @@ -83,12 +84,12 @@ def run_query(client, user, search_query): response["took"] = time_took_rounded response["cache"] = True return response - #response = client.search(search_query) + # response = client.search(search_query) response = requests.post(f"{settings.MANTICORE_URL}/json/search", json=search_query) response = ujson.loads(response.text) if "error" in response and len(response.keys()) == 1: return response - #response = response.to_dict() + # response = response.to_dict() print("RESP", response) if "took" in response: if response["took"] is None: