Skip to content

Commit

Permalink
f-string cannot include backslash error (#149)
Browse files Browse the repository at this point in the history
* f-string cannot include backslash error

Signed-off-by: Prabhu Subramanian <[email protected]>

* f-string cannot include backslash error

Signed-off-by: Prabhu Subramanian <[email protected]>

---------

Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Jun 18, 2024
1 parent 64ce70c commit 8d1df88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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.0.7"
version = "6.0.8"
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 = "[email protected]"},
Expand Down
5 changes: 3 additions & 2 deletions vdb/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
LOG = logging.getLogger(__name__)
for _ in ("httpx",):
logging.getLogger(_).disabled = True
NEWLINE = "\n"

AT_LOGO = r"""
___
Expand Down Expand Up @@ -156,9 +157,9 @@ def add_table_row(table: Table, res: dict, added_row_keys: dict):
affected_modules = list(affected_modules)
affects = ""
if affected_functions:
affects = f"## Functions\n- {'\n- '.join(affected_functions)}"
affects = f"## Functions\n- {(NEWLINE + '- ').join(affected_functions)}"
if affected_modules:
affects = f"{affects}\n## Modules\n- {'\n- '.join(affected_modules)}"
affects = f"{affects}\n## Modules\n- {(NEWLINE + '- ').join(affected_modules)}"
table.add_row(
res.get("cve_id"),
res.get("matched_by"),
Expand Down

0 comments on commit 8d1df88

Please sign in to comment.