Skip to content

Commit 394d9dd

Browse files
committed
fixed bug with :learn highlight
1 parent 24af232 commit 394d9dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/get_answer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def get_topic_type(topic): # pylint: disable=too-many-locals,too-many-branches,t
171171
if '+' in topic_name:
172172
result = 'question'
173173
else:
174-
if (topic_name in [':list']) or (topic_name in [':learn']):
174+
if (topic_name in [':list', ':learn']):
175175
result = "internal"
176-
elif is_valid_learnxy(topic):
177-
result = 'learnxiny'
176+
if topic_name == ':learn' and is_valid_learnxy(topic):
177+
result = 'learnxiny'
178178
else:
179179
# let us activate the 'question' feature for all subsections
180180
result = 'question'

0 commit comments

Comments
 (0)