Update index.py

This commit is contained in:
Mr Chen
2024-04-29 14:59:00 +08:00
parent 22a5e147d2
commit cfe063a6e7
+1 -1
View File
@@ -173,7 +173,7 @@ def runInfo():
import pymongo
port = getConfPort()
client = pymongo.MongoClient(host='127.0.0.1', port=int(port))
client = pymongo.MongoClient(host='127.0.0.1', port=int(port), directConnection=True)
db = client.admin
serverStatus = db.command('serverStatus')