diff --git a/lib/get_answer.py b/lib/get_answer.py index 068684a..e82dddc 100644 --- a/lib/get_answer.py +++ b/lib/get_answer.py @@ -284,7 +284,6 @@ def get_answer(topic, keyword, options="", request_options=None): # pylint: disa # so this part should be rewritten # for the most queries we could say immediately # what type the query has - start_time = time.time() topic_type = get_topic_type(topic) # checking if the answer is in the cache diff --git a/lib/globals.py b/lib/globals.py index 22fa72c..80d91c0 100644 --- a/lib/globals.py +++ b/lib/globals.py @@ -59,6 +59,7 @@ GITHUB_REPOSITORY = { "unknown" : '', } +MAX_SEARCH_LEN = 20 # # Reading configuration from etc/config.yaml