Browse Source

Bug fixes in mongodb datasource (missing import, variable names ...)

Roland Haroutiounian 8 years ago
parent
commit
6d05616ba1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      plugins/mongodb_datasource/datasource.py

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

@@ -14,7 +14,7 @@ from lodel.leapi.leobject import CLASS_ID_FIELDNAME
14 14
 
15 15
 from . import utils
16 16
 from .utils import object_collection_name, collection_name, \
17
-    MONGODB_SORT_OPERATORS_MAP, connection_string
17
+    MONGODB_SORT_OPERATORS_MAP, connection_string, mongo_fieldname
18 18
 
19 19
 class MongoDbDataSourceError(Exception):
20 20
     pass
@@ -431,7 +431,7 @@ class MongoDbDatasource(object):
431 431
                 #we are doing a UNIQ on collection name
432 432
                 cur_collname = object_collection_name(leobject)
433 433
                 if cur_collname not in collnames:
434
-                    leo_collname[cur_collame] = leobject
434
+                    leo_collname[cur_collname] = leobject
435 435
                     rfilters[fname][leobject] = dict()
436 436
                 #Fecthing the collection's representative leobject
437 437
                 repr_leo = leo_collname[cur_collname]

Loading…
Cancel
Save