From 8e53dbd0db3849f6d02856dca07d56d3f8956b50 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 12 Apr 2021 11:28:07 +0200 Subject: [PATCH] [FIX] runbot: hide testing builds from stats views. --- runbot/controllers/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index 4e87b570..25b74848 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -426,7 +426,7 @@ class Runbot(Controller): return request.not_found() builds_domain = [ - ('global_result', '=', 'ok'), ('slot_ids.batch_id.bundle_id', '=', bundle_id), ('params_id.trigger_id', '=', trigger.id), + ('global_state', 'in', ('running', 'done')), ('global_result', '=', 'ok'), ('slot_ids.batch_id.bundle_id', '=', bundle_id), ('params_id.trigger_id', '=', trigger.id), ] if max_build_id: