Commit 7a47218f authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed "some" method order.

parent 4de476e3
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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:
@@ -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]