Commit 028393fe authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

pithos: fix empty account usage computation

Usage computation for empty accounts used to fail with:
TypeError: 'NoneType' object is unsubscriptable
parent 0b69eab7
......@@ -483,7 +483,6 @@ class Node(DBWorker):
or_(self.nodes.c.parent.in_(select_children),
self.nodes.c.node.in_(select_children)))
s = select([func.sum(self.versions.c.size)])
s = s.group_by(self.versions.c.cluster)
s = s.where(self.nodes.c.node == self.versions.c.node)
s = s.where(self.nodes.c.node.in_(select_descendants))
s = s.where(self.versions.c.cluster == cluster)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment