mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update nosql_mongodb.py
This commit is contained in:
@@ -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']
|
||||||
|
|||||||
Reference in New Issue
Block a user