diff --git a/runbot/models/repo.py b/runbot/models/repo.py index eb52a145..fff5206a 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -372,7 +372,7 @@ class runbot_repo(models.Model): if branch.sticky: for rev_repo in self.search([('dependency_ids', 'in', self.id), ('no_build', '=', False)]): # find the latest build with the same branch name - latest_rev_build = Build.search([('build_type', '=', 'normal'), ('hidden', '=', 'False'), ('repo_id.id', '=', rev_repo.id), ('branch_id.branch_name', '=', branch.branch_name)], order='id desc', limit=1) + latest_rev_build = Build.search([('build_type', '=', 'normal'), ('hidden', '=', False), ('repo_id.id', '=', rev_repo.id), ('branch_id.branch_name', '=', branch.branch_name)], order='id desc', limit=1) if latest_rev_build: _logger.debug('Reverse dependency build %s forced in repo %s by commit %s', latest_rev_build.dest, rev_repo.name, sha[:6]) indirect = latest_rev_build._force(message='Rebuild from dependency %s commit %s' % (self.name, sha[:6]))