From f6e34fd8a52656752af6a8a8e1410e0d0a661bd8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 8 Aug 2015 21:14:57 -0400 Subject: [PATCH] Fix Missing 'mongodb' --- toontown/racing/LeaderboardMgrAI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toontown/racing/LeaderboardMgrAI.py b/toontown/racing/LeaderboardMgrAI.py index 2be67847..d02bfad1 100644 --- a/toontown/racing/LeaderboardMgrAI.py +++ b/toontown/racing/LeaderboardMgrAI.py @@ -10,10 +10,10 @@ class LeaderboardMgrAI: if not self.air.dbConn: self.database = simbase.backups.load('leaderboard', (self.air.districtId,), default=({})) else: - self.air.mongodb.toontown.leaderboard.ensure_index([('ai', 1)]) + self.air.dbGlobalCursor.leaderboard.ensure_index([('ai', 1)]) district = {'ai': self.air.districtId} try: - doc = self.air.mongodb.toontown.leaderboard.find_one(district) + doc = self.air.dbGlobalCursor.leaderboard.find_one(district) except AutoReconnect: return blocks