Skip to content
Snippets Groups Projects
Commit b35d7c3e authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed method to check if an object is first level in objectdb.

parent da4bf30f
No related branches found
No related tags found
No related merge requests found
......@@ -381,10 +381,9 @@ class ObjectsDB(object):
'''
ids = set()
for oid in self._objects:
parid = oid.partition('.')[0]
ids.add(parid)
for obj in self._objects.values():
if not '__parent' in obj:
ids.add(obj['id'])
return ids
def get(self, oid):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment