From 4a023531e44892aa93a112f57ddbb7034055204a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 5 May 2024 18:21:50 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 870884041..71f28c186 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -197,10 +197,10 @@ def mongdbClient(): auth = getConfAuth() ip = getConfIp() mg_root = pSqliteDb('config').where('id=?', (1,)).getField('mg_root') + # print(ip,port,auth,mg_root) if auth == 'disabled': client = pymongo.MongoClient(host=ip, port=int(port), directConnection=True) else: - # print(auth,mg_root) # uri = "mongodb://root:"+mg_root+"@127.0.0.1:"+str(port) # client = pymongo.MongoClient(uri) client = pymongo.MongoClient(host=ip, port=int(port), directConnection=True, username='root',password=mg_root)