From 394d9ddf87f2e9640432db6d11d770b95d8540fd Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 13 Oct 2018 14:51:19 +0000 Subject: [PATCH] fixed bug with :learn highlight --- lib/get_answer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/get_answer.py b/lib/get_answer.py index 330c1b5..2ed3e92 100644 --- a/lib/get_answer.py +++ b/lib/get_answer.py @@ -171,10 +171,10 @@ def get_topic_type(topic): # pylint: disable=too-many-locals,too-many-branches,t if '+' in topic_name: result = 'question' else: - if (topic_name in [':list']) or (topic_name in [':learn']): + if (topic_name in [':list', ':learn']): result = "internal" - elif is_valid_learnxy(topic): - result = 'learnxiny' + if topic_name == ':learn' and is_valid_learnxy(topic): + result = 'learnxiny' else: # let us activate the 'question' feature for all subsections result = 'question'