mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: do not display hosts with no recent builds (considered stopped)
This commit is contained in:
parent
fa68c54477
commit
431a3f6d5b
@ -1234,7 +1234,10 @@ class RunbotController(http.Controller):
|
|||||||
'filters': filters,
|
'filters': filters,
|
||||||
})
|
})
|
||||||
|
|
||||||
for result in build_obj.read_group(cr, uid, [], ['host'], ['host']):
|
# consider host gone if no build in last 100
|
||||||
|
build_threshold = max(build_ids) - 100
|
||||||
|
|
||||||
|
for result in build_obj.read_group(cr, uid, [('id', '>', build_threshold)], ['host'], ['host']):
|
||||||
if result['host']:
|
if result['host']:
|
||||||
context['host_stats'].append({
|
context['host_stats'].append({
|
||||||
'host': result['host'],
|
'host': result['host'],
|
||||||
|
Loading…
Reference in New Issue
Block a user