mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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']):
|
for result in build_obj.read_group(cr, uid, [], ['host'], ['host']):
|
||||||
context['host_stats'].append({
|
if result['host']:
|
||||||
'host': result['host'],
|
context['host_stats'].append({
|
||||||
'testing': count([('state', '=', 'testing'), ('host', '=', result['host'])]),
|
'host': result['host'],
|
||||||
'running': count([('state', '=', 'running'), ('host', '=', result['host'])]),
|
'testing': count([('state', '=', 'testing'), ('host', '=', result['host'])]),
|
||||||
})
|
'running': count([('state', '=', 'running'), ('host', '=', result['host'])]),
|
||||||
|
})
|
||||||
|
|
||||||
return request.render("runbot.repo", context)
|
return request.render("runbot.repo", context)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user