From 2bbe346e75c37a2b644a254a62b0ba55cafb164d Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 17 Sep 2021 14:30:23 +0200 Subject: [PATCH] [FIX] runbot: only use normal builds to display stats --- runbot/controllers/frontend.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index 03276e2c..d5db1357 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -430,7 +430,11 @@ class Runbot(Controller): return request.not_found() builds_domain = [ - ('global_state', 'in', ('running', 'done')), ('global_result', '=', 'ok'), ('slot_ids.batch_id.bundle_id', '=', bundle_id), ('params_id.trigger_id', '=', trigger.id), + ('build_type', '=', 'normal'), + ('global_state', 'in', ('running', 'done')), + ('global_result', '=', 'ok'), + ('slot_ids.batch_id.bundle_id', '=', bundle_id), + ('params_id.trigger_id', '=', trigger.id), ] builds = request.env['runbot.build'] if center_build_id: