|
@@ -85,7 +85,7 @@ class MongoDbDatasource(object):
|
85
|
85
|
target, filters, rel_filters)
|
86
|
86
|
query_result_ordering = None
|
87
|
87
|
if order is not None:
|
88
|
|
- query_result_ordering = parse_query_order(order)
|
|
88
|
+ query_result_ordering = utils.parse_query_order(order)
|
89
|
89
|
results_field_list = None if len(field_list) == 0 else field_list
|
90
|
90
|
limit = limit if limit is not None else 0
|
91
|
91
|
|
|
@@ -164,7 +164,7 @@ class MongoDbDatasource(object):
|
164
|
164
|
# @return list : list of the inserted records' ids
|
165
|
165
|
def insert_multi(self, target, datas_list):
|
166
|
166
|
res = self.__collection(target).insert_many(datas_list)
|
167
|
|
- return list(result.inserted_ids)
|
|
167
|
+ return list(res.inserted_ids)
|
168
|
168
|
|
169
|
169
|
##@brief Connect to database
|
170
|
170
|
#@not this method avoid opening two times the same connection using
|