Skip to content

Commit

Permalink
reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Mar 29, 2024
1 parent 38b3d0e commit 23a698b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,7 @@ def augment_prompt(self, user_prompt: Prompt, storage: DB) -> None: # noqa: C90
if vulnerability.description:
extra_info = f"{cve} is {vulnerability.description}.\n "
if vulnerability.affected_versions:
extra_info += (
f"{cve} affects the followig packages:\n {vulnerability.affected_versions}\n"
)
extra_info += f"{cve} affects the followig packages:\n {vulnerability.affected_versions}\n"
if vulnerability.hotfix_ids:
extra_info += f"{cve} is fixed in the following patches which can be found in patches.hotfix_id: {', '.join(vulnerability.hotfix_ids)}" # noqa: E501
if vulnerability.source:
Expand Down

0 comments on commit 23a698b

Please sign in to comment.