mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 03:35:12 -06:00
Fix a rpc method.
This commit is contained in:
parent
d536ca4ec4
commit
60f3706aae
1 changed files with 3 additions and 3 deletions
|
@ -667,13 +667,13 @@ class ToontownRPCHandler(ToontownRPCHandlerBase):
|
|||
|
||||
Example response: [100000001, ...]
|
||||
"""
|
||||
if not config.GetBool('want-mongo-client', False):
|
||||
if not config.GetBool('want-mongo', False):
|
||||
return []
|
||||
if not needle:
|
||||
return []
|
||||
self.air.mongodb.astron.objects.ensure_index('fields.setName')
|
||||
self.air.database.astron.objects.ensure_index('fields.setName')
|
||||
exp = re.compile('.*%s.*' % needle, re.IGNORECASE)
|
||||
result = self.air.mongodb.astron.objects.find({'fields.setName._0': exp})
|
||||
result = self.air.database.astron.objects.find({'fields.setName._0': exp})
|
||||
return [avatar['_id'] for avatar in result]
|
||||
|
||||
# --- SHARDS ---
|
||||
|
|
Loading…
Reference in a new issue