Skip to content

Commit 24af232

Browse files
committed
removed some debug output
1 parent debb717 commit 24af232

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/get_answer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def get_topic_type(topic): # pylint: disable=too-many-locals,too-many-branches,t
183183
result = 'late.nz'
184184

185185
if result == 'unknown' or result == 'question':
186-
print("result = ", result)
187186
print(CHEAT_SHEETS_TOPICS)
188187
if topic in CHEAT_SHEETS_TOPICS:
189188
result = "cheat.sheets"
@@ -195,7 +194,6 @@ def get_topic_type(topic): # pylint: disable=too-many-locals,too-many-branches,t
195194
result = "tldr"
196195
elif '/' not in topic:
197196
result = "unknown"
198-
print("result = ", result)
199197

200198
TOPIC_TYPE_CACHE[topic] = result
201199

@@ -297,9 +295,7 @@ def _get_answer_for_question(topic):
297295
query_text = re.sub('/[0-9]+$', '', query_text)
298296
query_text = re.sub('/[0-9]+$', '', query_text)
299297
detector = Detector(query_text)
300-
print("query_text = ", query_text)
301298
supposed_lang = detector.languages[0].code
302-
print("supposed lang = ", supposed_lang)
303299
if len(topic_words) > 2 or supposed_lang in ['az', 'ru', 'uk', 'de', 'fr', 'es', 'it', 'nl']:
304300
lang = supposed_lang
305301
if supposed_lang.startswith('zh_') or supposed_lang == 'zh':
@@ -462,7 +458,6 @@ def _rewrite_section_name_for_q(query):
462458
# what type the query has
463459
start_time = time.time()
464460
topic_type = get_topic_type(topic)
465-
print((time.time() - start_time)*1000)
466461

467462
# checking if the answer is in the cache
468463
if topic != "":

0 commit comments

Comments
 (0)