mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
run in this docker-compose.yml
This commit is contained in:
@@ -14,7 +14,7 @@ import pymongo
|
||||
|
||||
class Mongo:
|
||||
def __init__(self):
|
||||
self.client = pymongo.MongoClient(host=os.getenv("mongo") or "localhost", connect=False,
|
||||
self.client = pymongo.MongoClient(host=os.getenv("MONGO", "localhost"), connect=False,
|
||||
connectTimeoutMS=5000, serverSelectionTimeoutMS=5000)
|
||||
self.db = self.client["zimuzu"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user