Use (select search) instead of (select product) (#5)

This commit is contained in:
Mustafa Gezen 2023-04-20 18:41:22 +02:00 committed by GitHub
parent c6f6c2c47d
commit 3be61b8f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ async def fetch_advisories(
if keyword:
where_stmt += """
and (ap.name like '%' || (select product from vars) || '%' or
and (ap.name like '%' || (select search from vars) || '%' or
a.synopsis ilike '%' || (select search from vars) || '%' or
a.description ilike '%' || (select search from vars) || '%' or
exists (select cve from advisory_cves where advisory_id = a.id and cve ilike '%' || (select search from vars) || '%') or