summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/resources
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-31 23:18:46 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-31 23:18:46 +0800
commit915d8d123d665d47037e7385261a97b9113ddcd5 (patch)
tree1d70cce5d9a2f64d9eff5594c8a5083372417507 /utils/test/result_collection_api/resources
parentbbdf9f2a5ce6ef146a872aa0914588df714c1d95 (diff)
bugfix: query results failed due to wrong using period
JIRA: FUNCTEST-281 Change-Id: I3d0bdc302afc45593ad3feaec21b89d5c6eeaa0b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/resources')
-rw-r--r--utils/test/result_collection_api/resources/result_handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/resources/result_handlers.py b/utils/test/result_collection_api/resources/result_handlers.py
index 1d52235f6..f745d6331 100644
--- a/utils/test/result_collection_api/resources/result_handlers.py
+++ b/utils/test/result_collection_api/resources/result_handlers.py
@@ -31,7 +31,7 @@ class GenericResultHandler(GenericApiHandler):
if v > 0:
period = datetime.now() - timedelta(days=v)
obj = {"$gte": str(period)}
- query['creation_date'] = obj
+ query['start_date'] = obj
elif k == 'trust_indicator':
query[k] = float(v)
else: