From 45c803a274172ae2723a89998e84c5de10b28bf7 Mon Sep 17 00:00:00 2001 From: fedeb Date: Tue, 10 Nov 2020 11:19:43 +0100 Subject: [PATCH] Further removing of special cases --- lib/routing.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/routing.py b/lib/routing.py index e37c62b..b471373 100644 --- a/lib/routing.py +++ b/lib/routing.py @@ -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: