aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-09-08 14:42:48 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-09-08 14:44:31 +0200
commit01f202e514439be62c6fd8b04776a2812c8bfbfd (patch)
tree50da659412753db4cae821b2b9486e87d82e5958
parent3fc27de0bc453b7b12d79c5a5093d4026256c3fe (diff)
count: Fix problem with date_range.
* Introducing the new method to retrieve the date_range, the count API was not working correctly anymore. Change-Id: I4f1ed2b6f185c99f6a698956a0611759948f4cd2
-rw-r--r--app/handlers/count.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/handlers/count.py b/app/handlers/count.py
index 45c3a8d..67aeccc 100644
--- a/app/handlers/count.py
+++ b/app/handlers/count.py
@@ -113,6 +113,7 @@ class CountHandler(BaseHandler):
"""
result = []
spec = self._get_query_spec()
+ spec = self._get_and_add_date_range(spec)
if spec:
_, number = find_and_count(
@@ -143,6 +144,7 @@ class CountHandler(BaseHandler):
result = []
spec = self._get_query_spec()
+ spec = self._get_and_add_date_range(spec)
if spec:
for key, val in COLLECTIONS.iteritems():
_, number = find_and_count(