Changing essential part of query

This commit is contained in:
Curtis Castrapel 2018-11-07 16:02:04 -08:00
parent 08a2a2b0e5
commit 1643650685
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ def render(args):
query = query.join(certificate_associations).join(Domain).filter( query = query.join(certificate_associations).join(Domain).filter(
or_( or_(
Certificate.name.ilike(term), Certificate.name.ilike(term),
Certificate.domains.any(Domain.name.ilike(term)), Domain.name.ilike(term),
Certificate.cn.ilike(term), Certificate.cn.ilike(term),
) )
).group_by(Certificate.id) ).group_by(Certificate.id)