Skip to content

Commit

Permalink
use _sum instead of _stats
Browse files Browse the repository at this point in the history
  • Loading branch information
yedi committed Jun 14, 2013
1 parent f1b6e4d commit 0c53444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion corehq/apps/domain/_design/views/snapshots/reduce.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_stats
_sum
2 changes: 1 addition & 1 deletion corehq/apps/domain/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def total_downloads(self):
endkey=[self.get_id, {}],
reduce=True,
include_docs=False,
).one()["value"]["sum"]
).one()["value"]


class DomainCounter(Document):
Expand Down

0 comments on commit 0c53444

Please sign in to comment.