mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
Remved /:list from the possible random choice
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user