From 3172318e73688f6c25a3250db4bf50c711761e1d Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 31 Jan 2019 00:38:19 +0000 Subject: [PATCH] minor cleanup --- lib/get_answer.py | 1 - lib/globals.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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