Run Migrate. Implemented @search functionality with limits as per MUX (as part of the @find command). Added some more channel-related commands and changed locks for channels to have a "control" lock type rather than "admin". The migration converts this in existing channels..
This commit is contained in:
parent
23462c626c
commit
7f7016ad7d
16 changed files with 324 additions and 515 deletions
|
|
@ -2,7 +2,7 @@
|
|||
Custom manager for HelpEntry objects.
|
||||
"""
|
||||
from django.db import models
|
||||
from src.utils import logger
|
||||
from src.utils import logger, utils
|
||||
|
||||
class HelpEntryManager(models.Manager):
|
||||
"""
|
||||
|
|
@ -12,8 +12,8 @@ class HelpEntryManager(models.Manager):
|
|||
"""
|
||||
Searches for matching topics based on player's input.
|
||||
"""
|
||||
if topicstr.isdigit():
|
||||
return self.filter(id=topicstr)
|
||||
if utils.dbref(topicstr):
|
||||
return self.filter(id=utils.dbref(topicstr))
|
||||
topics = self.filter(db_key__iexact=topicstr)
|
||||
if not topics and not exact:
|
||||
topics = self.filter(db_key__istartswith=topicstr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue