1818from globals import REDISHOST , MAX_SEARCH_LEN
1919from languages_data import LANGUAGE_ALIAS , SO_NAME , rewrite_editor_section_name
2020
21- from adapter_learnxiny import get_learnxiny , get_learnxiny_list , is_valid_learnxy
2221import adapter .cheat_sheets
2322import adapter .cmd
2423import adapter .latenz
@@ -68,7 +67,7 @@ def __init__(self):
6867 "late.nz" : adapter .latenz .get_list (),
6968 "cheat.sheets" : adapter .cheat_sheets .get_list (),
7069 "cheat.sheets dir" : adapter .cheat_sheets .get_dirs_list (),
71- "learnxiny" : get_learnxiny_list (),
70+ "learnxiny" : adapter . learnxiny . get_learnxiny_list (),
7271 }
7372 for key , obj in self ._adapter .items ():
7473 self ._topic_list [key ] = obj .get_list ()
@@ -77,7 +76,7 @@ def __init__(self):
7776 "late.nz" : adapter .latenz .is_found ,
7877 "cheat.sheets" : adapter .cheat_sheets .is_found ,
7978 "cheat.sheets dir" : adapter .cheat_sheets .is_dir_found ,
80- "learnxiny" : is_valid_learnxy ,
79+ "learnxiny" : adapter . learnxiny . is_valid_learnxy ,
8180 }
8281 for key , obj in self ._adapter .items ():
8382 self ._topic_found [key ] = obj .is_found
@@ -89,7 +88,7 @@ def __init__(self):
8988 ("late.nz" , adapter .latenz .get_answer ),
9089 ("cheat.sheets" , adapter .cheat_sheets .get_page ),
9190 ("cheat.sheets dir" , adapter .cheat_sheets .get_dir ),
92- ("learnxiny" , get_learnxiny ),
91+ ("learnxiny" , adapter . learnxiny . get_learnxiny ),
9392 ("question" , adapter .question .get_page ),
9493 ("fosdem" , self ._adapter ["fosdem" ].get_page ),
9594 ("rosetta" , self ._adapter ["rosetta" ].get_page ),
@@ -122,7 +121,7 @@ def get_topics_list(self, skip_dirs=False, skip_internal=False):
122121 answer = sorted (set (answer .keys ()))
123122
124123 # doing it in this strange way to save the order of the topics
125- for topic in get_learnxiny_list ():
124+ for topic in adapter . learnxiny . get_learnxiny_list ():
126125 if topic not in answer :
127126 answer .append (topic )
128127
@@ -160,7 +159,7 @@ def __get_topic_type(topic):
160159
161160 # topic contains '/'
162161 #
163- if is_valid_learnxy (topic ):
162+ if adapter . learnxiny . is_valid_learnxy (topic ):
164163 return 'learnxiny'
165164 topic_type = topic .split ('/' , 1 )[0 ]
166165 if topic_type in ['ru' , 'fr' ] or re .match (r'[a-z][a-z]-[a-z][a-z]$' , topic_type ):
0 commit comments