mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 03:35:12 -06:00
Fix Missing 'mongodb'
This commit is contained in:
parent
59b5db96f3
commit
f6e34fd8a5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue