1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Further removing of special cases

This commit is contained in:
fedeb
2020-11-10 11:19:43 +01:00
parent 73e4e46e3e
commit 45c803a274
+1 -4
View File
@@ -117,10 +117,7 @@ class Router(object):
def __select_random_topic(prefix, topic_list):
#Here we remove the special cases
if "rosetta/" in topic_list:
topic_list.remove("rosetta/")
cleaned_topic_list = [ x for x in topic_list if ':' not in x]
cleaned_topic_list = [ x for x in topic_list if '/' not in x and ':' not in x]
#Here we still check that cleaned_topic_list in not empty
if not cleaned_topic_list: