Merge pull request #3441 from InspectorCaracal/patch-13

Fix rpsystem search
This commit is contained in:
Griatch 2024-03-09 17:37:56 +01:00 committed by GitHub
commit d893cfd46e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1320,12 +1320,7 @@ class ContribRPObject(DefaultObject):
def get_search_result(
self,
searchdata,
attribute_name=None,
typeclass=None,
candidates=None,
exact=False,
use_dbref=None,
tags=None,
**kwargs,
):
"""
@ -1352,12 +1347,12 @@ class ContribRPObject(DefaultObject):
if not results and is_builder:
# builders get a chance to search only by key+alias
results = search_obj(searchdata)
results = search_obj(searchdata, candidates=candidates, **kwargs)
else:
# global searches / #drefs end up here. Global searches are
# only done in code, so is controlled, #dbrefs are turned off
# for non-Builders.
results = search_obj(searchdata)
results = search_obj(searchdata, **kwargs)
return results
def get_posed_sdesc(self, sdesc, **kwargs):