This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push: new 5ab76f5 let the UI gather up 'others' 5ab76f5 is described below commit 5ab76f5d3eeca2b0cd9424413e3f296c9f92003d Author: Daniel Gruno <humbed...@apache.org> AuthorDate: Fri Feb 16 21:25:00 2018 +0100 let the UI gather up 'others' we don't need the backend to collating when we can have the UI do it already. --- api/pages/ci/top-buildcount.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/api/pages/ci/top-buildcount.py b/api/pages/ci/top-buildcount.py index 31ef5c3..aa70405 100644 --- a/api/pages/ci/top-buildcount.py +++ b/api/pages/ci/top-buildcount.py @@ -164,15 +164,8 @@ def run(API, environ, indata, session): jobs.append([builds, duration, jobname, ci]) topjobs = sorted(jobs, key = lambda x: int(x[0]), reverse = True) - top = topjobs[0:24] - if len(topjobs) > 25: - count = 0 - for repo in topjobs[25:]: - count += repo[1] - top.append(["Other jobs", 1, count, '??']) - tophash = {} - for v in top: + for v in topjobs: tophash["%s (%s)" % (v[2], v[3])] = v[0] JSON_OUT = { -- To stop receiving notification emails like this one, please contact humbed...@apache.org.