From bfa25504f328f16810106d87ef2319b61a2992d5 Mon Sep 17 00:00:00 2001 From: fedeb Date: Thu, 5 Nov 2020 14:32:34 +0100 Subject: [PATCH] Remved /:list from the possible random choice --- lib/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routing.py b/lib/routing.py index 5684c34..65b1745 100644 --- a/lib/routing.py +++ b/lib/routing.py @@ -131,7 +131,7 @@ class Router(object): topic_list = [x[len(topic):] for x in self.get_topics_list() if x.startswith(topic + "/")] - if ":list" in topic_list: topic_list.remove(":list") + if "/:list" in topic_list: topic_list.remove("/:list") random_topic = topic + random.choice(topic_list) return random_topic