mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: better same branch build filter
This commit is contained in:
parent
3e7d98a6b8
commit
b4a25c54e4
@ -174,11 +174,16 @@ class runbot_branch(models.Model):
|
|||||||
query = """
|
query = """
|
||||||
SELECT max(b.id)
|
SELECT max(b.id)
|
||||||
FROM runbot_build b
|
FROM runbot_build b
|
||||||
|
JOIN runbot_branch br ON br.id = b.branch_id
|
||||||
|
|
||||||
WHERE b.branch_id IN (
|
WHERE b.branch_id IN (
|
||||||
SELECT id from runbot_branch WHERE %s
|
SELECT id from runbot_branch WHERE %s
|
||||||
)
|
)
|
||||||
AND b.build_type IN ('normal', 'rebuild')
|
AND b.build_type IN ('normal', 'rebuild')
|
||||||
AND b.repo_id in %%s
|
AND b.repo_id in %%s
|
||||||
|
AND (b.hidden = false OR b.hidden IS NULL)
|
||||||
|
AND b.parent_id IS NULL
|
||||||
|
AND (br.no_build = false OR br.no_build IS NULL)
|
||||||
GROUP BY b.repo_id
|
GROUP BY b.repo_id
|
||||||
""" % where_clause
|
""" % where_clause
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user