From 2556145843cb5c6bc14cf7dc2df8136605e7af88 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 23 Nov 2020 12:15:21 +0100 Subject: [PATCH] [FIX] runbot: do not count linked errors On the build errors frontend page, the linked errors are displayed too. With this commit, they are removed from the search query. --- 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 7e168239..a58241b0 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -368,7 +368,7 @@ class Runbot(Controller): current_user_errors = request.env['runbot.build.error'].search([('responsible', '=', request.env.user.id)], order='last_seen_date desc, build_count desc') - domain = [('responsible', '!=', request.env.user.id), ('build_count', '>', 1)] + domain = [('parent_id', '=', False), ('responsible', '!=', request.env.user.id), ('build_count', '>', 1)] build_errors_count = request.env['runbot.build.error'].search_count(domain) url_args = {} url_args['sort'] = sort