From 542bb24ad8149faba48229f65478c0f71e926e0b Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Fri, 12 May 2017 11:02:03 +0200 Subject: [PATCH] mbs-build,overview: ensure latest builds The list is not sorted, so we need to sort it to get info about latest builds. Signed-off-by: Tomas Tomecek --- contrib/mbs-build | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/mbs-build b/contrib/mbs-build index 1aaf4f18..2de9a223 100755 --- a/contrib/mbs-build +++ b/contrib/mbs-build @@ -335,6 +335,7 @@ def show_overview(server, finished, limit=30): states) # Make one flat list with all the modules. module_builds = [item for sublist in module_builds for item in sublist] + module_builds.sort(key=lambda x: x["id"]) # Get the table rows with information about each module using 20 threads. pool = ThreadPool(20)