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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user