Skip to content

Commit be2ea1f

Browse files
committed
Format monthly-report script
1 parent c29400d commit be2ea1f

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,29 @@ def print_reports(
109109
mod_date = datetime.fromisoformat(
110110
identifier.findtext("modification_time")
111111
).date()
112-
112+
113113
if mod_date >= to_date or mod_date < from_date:
114114
continue
115-
115+
116116
report_ids.append(identifier.find("source").get("id"))
117-
if reports_choice == 'last':
117+
if reports_choice == "last":
118118
break
119119

120-
if reports_choice == 'last':
120+
if reports_choice == "last":
121121
table_data.append(
122122
[hostname, ip, report_ids[0], critical, high, medium, low]
123123
)
124124
else:
125125
table_data.append(
126-
[hostname, ip, ',\n'.join(report_ids)+'\n', critical, high, medium, low]
126+
[
127+
hostname,
128+
ip,
129+
",\n".join(report_ids) + "\n",
130+
critical,
131+
high,
132+
medium,
133+
low,
134+
]
127135
)
128136

129137
table = AsciiTable(table_data)

0 commit comments

Comments
 (0)