Skip to content

Commit bfa2550

Browse files
committed
Remved /:list from the possible random choice
1 parent b62bb91 commit bfa2550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def select_random_topic(self,topic):
131131
topic_list = [x[len(topic):]
132132
for x in self.get_topics_list()
133133
if x.startswith(topic + "/")]
134-
if ":list" in topic_list: topic_list.remove(":list")
134+
if "/:list" in topic_list: topic_list.remove("/:list")
135135
random_topic = topic + random.choice(topic_list)
136136
return random_topic
137137

0 commit comments

Comments
 (0)