Skip to content

Commit c29400d

Browse files
Move "none" table header in monthly-report to else case
Co-authored-by: Björn Ricks <bjoern.ricks@greenbone.net>
1 parent 1178f8a commit c29400d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/monthly-report-gos24.10.gmp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def print_reports(
2525
sum_medium = 0
2626
sum_low = 0
2727

28-
table_header = ["Hostname", "IP", "Critical", "High", "Medium", "Low"]
2928
if reports_choice == "last":
3029
table_header = [
3130
"Hostname",
@@ -46,6 +45,8 @@ def print_reports(
4645
"Medium",
4746
"Low",
4847
]
48+
else:
49+
table_header = ["Hostname", "IP", "Critical", "High", "Medium", "Low"]
4950

5051
table_data = [table_header]
5152

0 commit comments

Comments
 (0)