1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

do not show :first page in the search results (fixes #6)

This commit is contained in:
Igor Chubin
2017-05-29 10:35:54 +00:00
parent ca21475b38
commit 6b17e9667c
+4
View File
@@ -352,6 +352,10 @@ def find_answer_by_keyword(directory, keyword, options=""):
answer_paragraphs = []
for topic in get_topics_list(skip_internal=True, skip_dirs=True):
# skip these pages, don't show them in search
if topic in [':firstpage']:
continue
if not topic.startswith(directory):
continue