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 <ttomecek@redhat.com>
This commit is contained in:
Tomas Tomecek
2017-05-12 11:02:03 +02:00
parent 5c6a0459c9
commit 542bb24ad8

View File

@@ -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)