[FIX] runbot: count only really active hosts

This commit is contained in:
Christophe Monniez 2022-06-20 10:15:43 +02:00 committed by xdo
parent 250d48e266
commit d534f5a5e2

View File

@ -117,7 +117,7 @@ class Runbot(Controller):
'pending_total': pending_count,
'pending_level': level,
'scheduled_count': scheduled_count,
'hosts_data': request.env['runbot.host'].search([]),
'hosts_data': request.env['runbot.host'].search([('assigned_only', '=', False)]),
}
if project:
domain = [('last_batch', '!=', False), ('project_id', '=', project.id), ('no_build', '=', False)]