Fix confusing "about" lunr search issue

This commit is contained in:
Griatch 2021-05-08 20:48:00 +02:00
parent 88a48e6842
commit 5155ec049d
3 changed files with 38 additions and 5 deletions

View file

@ -336,7 +336,6 @@ class CmdHelp(COMMAND_DEFAULT_CLASS):
cmdset.make_unique(caller)
# retrieve all available commands and database / file-help topics
from evennia.commands.default.system import CmdAbout
all_cmds = [cmd for cmd in cmdset if self.check_show_help(cmd, caller)]
# we group the file-help topics with the db ones, giving the db ones priority
@ -380,8 +379,6 @@ class CmdHelp(COMMAND_DEFAULT_CLASS):
# all available options
entries = [cmd for cmd in all_cmds if cmd] + all_db_topics + all_categories
print("CmdAbout in entries: ", CmdAbout in entries)
# lunr search fields/boosts
search_fields=[
{"field_name": "key", "boost": 10},