Skip to content

Commit bcd89b9

Browse files
authored
Merge pull request #8197 from 4teamwork/ran/TI-2704/disposition-excel-report
Return 0 for documents count and size if disposition is closed
2 parents cf4b621 + a07f4e2 commit bcd89b9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

changes/TI-2704.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Return 0 for document count and size if disposition is closed. [ran]

opengever/disposition/disposition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ def stats(self):
103103

104104
@property
105105
def docs_count(self):
106-
return self.stats['docs_count']
106+
return self.stats.get('docs_count', 0)
107107

108108
@property
109109
def docs_size(self):
110-
return self.stats['docs_size']
110+
return self.stats.get('docs_size', 0)
111111

112112
def get_grouping_key(self):
113113
return self.parent

0 commit comments

Comments
 (0)