Update nosql_mongodb.py

This commit is contained in:
Mr Chen
2024-02-06 18:06:45 +08:00
parent 55e9313711
commit 48a55e279e
+2 -2
View File
@@ -6,8 +6,10 @@ import os
import time import time
import re import re
import pymongo import pymongo
import json
from bson.objectid import ObjectId from bson.objectid import ObjectId
from bson.json_util import dumps
sys.path.append(os.getcwd() + "/class/core") sys.path.append(os.getcwd() + "/class/core")
import mw import mw
@@ -128,8 +130,6 @@ class nosqlMongodbCtr():
return mw.returnData(True,'ok', result) return mw.returnData(True,'ok', result)
def getDataList(self, args): def getDataList(self, args):
from bson.json_util import dumps
import json
sid = args['sid'] sid = args['sid']
db = args['db'] db = args['db']
collection = args['collection'] collection = args['collection']