Browse Source

Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel

prieto 8 years ago
parent
commit
feab715c49
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugins/mongodb_datasource/datasource.py

+ 1
- 1
plugins/mongodb_datasource/datasource.py View File

@@ -157,7 +157,7 @@ class MongoDbDatasource(object):
157 157
             sorting_list.extends(query_result_ordering)
158 158
 
159 159
             pipeline.append({'$match': query_filters})
160
-            if results_field_list is not None:
160
+            if field_list is not None:
161 161
                 pipeline.append({
162 162
                     '$project': SON([{field_name: 1}
163 163
                     for field_name in field_list])})

Loading…
Cancel
Save