mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 00:29:57 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user