Skip to content

Commit

Permalink
Reformat files with black 24.1.1
Browse files Browse the repository at this point in the history
With black 24.1.0 some styles got changed.
  • Loading branch information
bjoernricks committed Jan 29, 2024
1 parent 72e2361 commit 6dde02e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/create-cve-report-from-json.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def generate_host_detail(
if source_type:
e.SubElement(source_elem, "type").text = source_type
if source_description:
e.SubElement(
source_elem, "description"
).text = source_description
e.SubElement(source_elem, "description").text = (
source_description
)

return host_detail_elem

Expand Down Expand Up @@ -321,9 +321,9 @@ def add_results(self, ip, hostname, cpes: Dict, cpeo, os, date_time):
result_id = generate_uuid()
result = e.Element("result", {"id": result_id})
e.SubElement(result, "name").text = f"Result for host {ip}"
e.SubElement(
result, "comment"
).text = "Imported with gvm-tools"
e.SubElement(result, "comment").text = (
"Imported with gvm-tools"
)
e.SubElement(result, "modification_time").text = date_time
e.SubElement(result, "creation_time").text = date_time
detect_elem = e.Element("detection")
Expand Down

0 comments on commit 6dde02e

Please sign in to comment.