Revision 83a3723e snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py

b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py
483 483
            or_(self.nodes.c.parent.in_(select_children),
484 484
                self.nodes.c.node.in_(select_children)))
485 485
        s = select([func.sum(self.versions.c.size)])
486
        s = s.group_by(self.versions.c.cluster)
487 486
        s = s.where(self.nodes.c.node == self.versions.c.node)
488 487
        s = s.where(self.nodes.c.node.in_(select_descendants))
489 488
        s = s.where(self.versions.c.cluster == cluster)

Also available in: Unified diff