diff options
author | 2017-06-06 14:54:03 +0000 | |
---|---|---|
committer | 2017-06-06 14:54:03 +0000 | |
commit | a0d5ced294e40d3ac091012ea325361aa5fc3011 (patch) | |
tree | 0c61db1c1efbc23e7b3af13fc9c2896a857d291e /utils/test/testapi/opnfv_testapi | |
parent | 87efe7980dcb89fff5e1560fc89d84101c529092 (diff) | |
parent | 2603d107bf15ab0d48417f7c948f7aeba057563b (diff) |
Merge "show community results"
Diffstat (limited to 'utils/test/testapi/opnfv_testapi')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/resources/result_handlers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/resources/result_handlers.py b/utils/test/testapi/opnfv_testapi/resources/result_handlers.py index 214706f5f..b84d1e3c2 100644 --- a/utils/test/testapi/opnfv_testapi/resources/result_handlers.py +++ b/utils/test/testapi/opnfv_testapi/resources/result_handlers.py @@ -47,7 +47,7 @@ class GenericResultHandler(handlers.GenericApiHandler): query['start_date'] = obj elif k == 'trust_indicator': query[k + '.current'] = float(v) - elif k != 'last': + elif k != 'last' and k != 'page': query[k] = v return query @@ -126,6 +126,10 @@ class ResultsCLHandler(GenericResultHandler): if last is not None: last = self.get_int('last', last) + page = self.get_query_argument('page', 0) + if page: + last = 20 + self._list(query=self.set_query(), sort=[('start_date', -1)], last=last) |