Loading ccserver/objectsdb.py +4 −5 Original line number Diff line number Diff line Loading @@ -89,9 +89,9 @@ class ObjectsDB(object): tags_novalue -= tags if ids is not None: ids = set(ids) ids = OrderedSet(ids) else: ids = set(self._objects) ids = OrderedSet(self._objects) # The main-loop, we will pop each object id from the set and # process it: Loading Loading @@ -303,6 +303,5 @@ class ObjectsDB(object): ''' self.update(ids, tags=tags, tags_novalue=to_check) for obj in self._objects.values(): if obj['id'] in ids: yield obj for obj_id in ids: yield self._objects[obj_id] Loading
ccserver/objectsdb.py +4 −5 Original line number Diff line number Diff line Loading @@ -89,9 +89,9 @@ class ObjectsDB(object): tags_novalue -= tags if ids is not None: ids = set(ids) ids = OrderedSet(ids) else: ids = set(self._objects) ids = OrderedSet(self._objects) # The main-loop, we will pop each object id from the set and # process it: Loading Loading @@ -303,6 +303,5 @@ class ObjectsDB(object): ''' self.update(ids, tags=tags, tags_novalue=to_check) for obj in self._objects.values(): if obj['id'] in ids: yield obj for obj_id in ids: yield self._objects[obj_id]