mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-24 22:21:26 +00:00
Use (select search) instead of (select product) (#5)
This commit is contained in:
parent
c6f6c2c47d
commit
3be61b8f77
@ -84,7 +84,7 @@ async def fetch_advisories(
|
|||||||
|
|
||||||
if keyword:
|
if keyword:
|
||||||
where_stmt += """
|
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.synopsis ilike '%' || (select search from vars) || '%' or
|
||||||
a.description 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
|
exists (select cve from advisory_cves where advisory_id = a.id and cve ilike '%' || (select search from vars) || '%') or
|
||||||
|
Loading…
Reference in New Issue
Block a user