mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] ignore build without hosts for displayed stats
This commit is contained in:
parent
16521bb575
commit
71c35940de
@ -1063,11 +1063,12 @@ class RunbotController(http.Controller):
|
||||
})
|
||||
|
||||
for result in build_obj.read_group(cr, uid, [], ['host'], ['host']):
|
||||
context['host_stats'].append({
|
||||
'host': result['host'],
|
||||
'testing': count([('state', '=', 'testing'), ('host', '=', result['host'])]),
|
||||
'running': count([('state', '=', 'running'), ('host', '=', result['host'])]),
|
||||
})
|
||||
if result['host']:
|
||||
context['host_stats'].append({
|
||||
'host': result['host'],
|
||||
'testing': count([('state', '=', 'testing'), ('host', '=', result['host'])]),
|
||||
'running': count([('state', '=', 'running'), ('host', '=', result['host'])]),
|
||||
})
|
||||
|
||||
return request.render("runbot.repo", context)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user