1
0
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:
fedeb
2020-11-05 14:32:34 +01:00
parent b62bb9118c
commit bfa25504f3
+1 -1
View File
@@ -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