Skip to content

Commit

Permalink
Fix formatting in monthly-report-gos24.10.gmp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Dec 4, 2024
1 parent ce7718e commit 6d3f317
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/monthly-report-gos24.10.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def print_reports(gmp: Gmp, from_date: date, to_date: date) -> None:
sum_high = 0
sum_medium = 0
sum_low = 0
table_data = [["Hostname", "IP", "Bericht", "critical", "high", "medium", "low"]]
table_data = [
["Hostname", "IP", "Bericht", "critical", "high", "medium", "low"]
]

for host in hosts_xml.xpath("asset"):
ip = host.xpath("name/text()")[0]
Expand All @@ -72,7 +74,9 @@ def print_reports(gmp: Gmp, from_date: date, to_date: date) -> None:
high = int(results.xpath('count(//result/threat[text()="High"])'))
sum_high += high

critical = int(results.xpath('count(//result/threat[text()="Critical"])'))
critical = int(
results.xpath('count(//result/threat[text()="Critical"])')
)
sum_critical += critical

best_os_cpe_report_id = host.xpath(
Expand Down

0 comments on commit 6d3f317

Please sign in to comment.