diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2017-12-13 01:15:39 +0000 |
---|---|---|
committer | Leo wang <grakiss.wanglei@huawei.com> | 2017-12-18 06:56:51 +0000 |
commit | d47718c2c05bff8bfee5246a7946c361971164a0 (patch) | |
tree | a12784d28c488f0373342d72bcb7d42f09a90d27 /cvp/opnfv_testapi | |
parent | bae47b1bc7957216b82bc81a4c6dc48bec11a3b3 (diff) |
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 <grakiss.wanglei@huawei.com>
(cherry picked from commit c94df5dc491cff80bfa14cf1e66b62db48e05b01)
Diffstat (limited to 'cvp/opnfv_testapi')
-rw-r--r-- | cvp/opnfv_testapi/resources/test_handlers.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 ' |