Skip to content

Commit

Permalink
--bom search was not working
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Nov 15, 2024
1 parent 7d1b603 commit bf95d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "6.2.0"
version = "6.2.1"
description = "AppThreat's vulnerability database and package search library with a built-in sqlite based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "cloud@appthreat.com"},
Expand Down
5 changes: 4 additions & 1 deletion vdb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ def print_results(results):
for result_gen in results:
if isinstance(result_gen, dict):
add_table_row(table, result_gen, added_row_keys)
if isinstance(result_gen, types.GeneratorType):
elif isinstance(result_gen, list):
for res in result_gen:
add_table_row(table, res, added_row_keys)
elif isinstance(result_gen, types.GeneratorType):
for res in result_gen:
add_table_row(table, res, added_row_keys)
elif isinstance(results, list):
Expand Down

0 comments on commit bf95d7d

Please sign in to comment.