Browse Source

Bug fix on an unexisting variable name

Roland Haroutiounian 8 years ago
parent
commit
c4df855e2f
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
             sorting_list.extends(query_result_ordering)
157
             sorting_list.extends(query_result_ordering)
158
 
158
 
159
             pipeline.append({'$match': query_filters})
159
             pipeline.append({'$match': query_filters})
160
-            if results_field_list is not None:
160
+            if field_list is not None:
161
                 pipeline.append({
161
                 pipeline.append({
162
                     '$project': SON([{field_name: 1}
162
                     '$project': SON([{field_name: 1}
163
                     for field_name in field_list])})
163
                     for field_name in field_list])})

Loading…
Cancel
Save