Changing essential part of query

This commit is contained in:
Curtis Castrapel 2018-11-07 16:02:04 -08:00
parent 08a2a2b0e5
commit 1643650685

View File

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