diff options
author | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:52:28 +0530 |
---|---|---|
committer | SaiEswarEpuri <saieswar36@gmail.com> | 2015-07-06 11:52:28 +0530 |
commit | c782ac82c99d0336ae2a40aa7cb5a664a366d495 (patch) | |
tree | 2fb0b187c870cffbb5a8b785ed327e5387d6ccad /gnowsys-ndf/gnowsys_ndf | |
parent | 74e28c92080fbc452d2d2f18e330860a643df82b (diff) | |
download | gnowsys-c782ac82c99d0336ae2a40aa7cb5a664a366d495.tar.gz |
no changes made
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/methods.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/methods.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/methods.py index 29f15f1..d125264 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/methods.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/methods.py @@ -503,15 +503,14 @@ def get_drawers(group_id, nid=None, nlist=[], page_no=1, checked=None, **kwargs) for each in drawer: if each._id not in nlist: dict1[each._id] = each -<<<<<<< HEAD + #loop replaced by a list comprehension dict2=[node_collection.one({'_id': oid}) for oid in nlist] -======= + for oid in nlist: obj = node_collection.one({'_id': oid}) dict2.append(obj) ->>>>>>> 140b91336d7067015d6e7e26126b6157a48cc27a dict_drawer['1'] = dict1 dict_drawer['2'] = dict2 @@ -522,10 +521,8 @@ def get_drawers(group_id, nid=None, nlist=[], page_no=1, checked=None, **kwargs) if each._id != nid: if each._id not in nlist: dict1[each._id] = each -<<<<<<< HEAD #loop replaced by a list comprehension dict2=[node_collection.one({'_id': oid}) for oid in nlist] -======= for oid in nlist: @@ -533,7 +530,6 @@ def get_drawers(group_id, nid=None, nlist=[], page_no=1, checked=None, **kwargs) dict2.append(obj) ->>>>>>> 140b91336d7067015d6e7e26126b6157a48cc27a dict_drawer['1'] = dict1 dict_drawer['2'] = dict2 |