mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-23 01:54:01 +08:00
Update nosql_mongodb.py
This commit is contained in:
@@ -164,7 +164,8 @@ class nosqlMongodbCtr():
|
||||
where[mg_field] = re.compile(mg_value)
|
||||
|
||||
# print(where)
|
||||
result = collection_instance.find(where).skip(start_index).limit(size).sort({'_id':-1})
|
||||
# .sort({'_id':-1})
|
||||
result = collection_instance.find(where).skip(start_index).limit(size)
|
||||
count = collection_instance.count_documents(where)
|
||||
d = []
|
||||
for document in result:
|
||||
|
||||
Reference in New Issue
Block a user