We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf4b621 + a07f4e2 commit bcd89b9Copy full SHA for bcd89b9
2 files changed
changes/TI-2704.bugfix
@@ -0,0 +1 @@
1
+Return 0 for document count and size if disposition is closed. [ran]
opengever/disposition/disposition.py
@@ -103,11 +103,11 @@ def stats(self):
103
104
@property
105
def docs_count(self):
106
- return self.stats['docs_count']
+ return self.stats.get('docs_count', 0)
107
108
109
def docs_size(self):
110
- return self.stats['docs_size']
+ return self.stats.get('docs_size', 0)
111
112
def get_grouping_key(self):
113
return self.parent
0 commit comments