From 60f3706aae6c09f0836f1879ffc5b8fee362430c Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 20 Aug 2015 00:49:58 -0400 Subject: [PATCH] Fix a rpc method. --- toontown/rpc/ToontownRPCHandler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toontown/rpc/ToontownRPCHandler.py b/toontown/rpc/ToontownRPCHandler.py index 3ee3b72d..2baa3d5a 100755 --- a/toontown/rpc/ToontownRPCHandler.py +++ b/toontown/rpc/ToontownRPCHandler.py @@ -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 ---