mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 13:37:17 +02:00
I have imported and dumped the MUX2 help files into a fixture in game/docs/help_files.json. These are now loaded on the first game's run. As we update help files and dumpdata/commit them, game admins may use the new 'update_help' manage.py command to update their copy of help files. For example: python manage.py update_helpfiles. Those with a current checkout of the source may want to do this now.
It is important to note that these are currently un-modified MUX2 help files. There are a lot of things that are not applicable, incorrect, or only partially correct. It will be an ongoing project to clean these up.
This commit is contained in:
parent
b646aa5093
commit
f2d4b3aba4
8 changed files with 24 additions and 5 deletions
|
|
@ -13,7 +13,11 @@ class HelpEntryManager(models.Manager):
|
|||
if topicstr.isdigit():
|
||||
t_query = self.filter(id=topicstr)
|
||||
else:
|
||||
t_query = self.filter(topicname__istartswith=topicstr)
|
||||
exact_match = self.filter(topicname__iexact=topicstr)
|
||||
if exact_match:
|
||||
t_query = exact_match
|
||||
else:
|
||||
t_query = self.filter(topicname__istartswith=topicstr)
|
||||
|
||||
if not is_staff:
|
||||
return t_query.exclude(staff_only=1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue