Skip to content

Commit a2cb5e4

Browse files
author
Vadim Bogulean
committed
Fix search on CVE id only from prev change
1 parent 7fbdf42 commit a2cb5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def search_cves(appctx: ApplicationContext, opts: SearchOptions):
4343

4444
# filter by the cve IDS, either directly specified in the search options
4545
if opts.cveId:
46-
cve_ids = list(map(lambda cve_id: cve_id.upper(), set(cve_ids)))
46+
cve_ids = list(map(lambda cve_id: cve_id.upper(), set(opts.cveId)))
4747
query = query.filter(cve_table.vuln_id.in_(cve_ids))
4848

4949
# or via the cpe 2.3

0 commit comments

Comments
 (0)