From c94df5dc491cff80bfa14cf1e66b62db48e05b01 Mon Sep 17 00:00:00 2001 From: grakiss Date: Wed, 13 Dec 2017 01:15:39 +0000 Subject: Bugfix: pass/not pass filter not work in result-report page The reason is there are some conflict with jquery.js and ng-model. So ng-model not work. Change-Id: I01ccd0e297d1a89aff8f78d7fb0a63a0e2114f63 Signed-off-by: grakiss --- cvp/opnfv_testapi/resources/test_handlers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cvp/opnfv_testapi') diff --git a/cvp/opnfv_testapi/resources/test_handlers.py b/cvp/opnfv_testapi/resources/test_handlers.py index 161585ef..2b5f28c2 100644 --- a/cvp/opnfv_testapi/resources/test_handlers.py +++ b/cvp/opnfv_testapi/resources/test_handlers.py @@ -221,7 +221,14 @@ class TestsGURHandler(GenericTestHandler): query['owner'] = curr_user db_keys.append('owner') - test_query = {'id': test['id'], 'status': 'review'} + test_query = { + 'id': test['id'], + '$or': [ + {'status': 'review'}, + {'status': 'approved'}, + {'status': 'not approved'} + ] + } record = yield dbapi.db_find_one("tests", test_query) if record: msg = ('{} has already submitted one record with the same ' -- cgit 1.2.3-korg