Use (select search) instead of (select product)

This commit is contained in:
Mustafa Gezen 2023-04-20 18:40:19 +02:00
parent c6f6c2c47d
commit 08e8e5b189
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

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