Skip to content

Commit f5c98ee

Browse files
author
tristanlatr
committed
Minor change in wording
1 parent 959cb5e commit f5c98ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/scan_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_update_report(self):
8383
"infos": [
8484
"[+]","blablabla"],
8585
"warnings": [
86-
"[!] No WPVulnDB API Token given, as a result vulnerability data has not been output.\n[!] You can get a free API token with 50 daily requests by registering at https://wpvulndb.com/users/sign_up\nWarning: This issue is unfixed since 2020-04-08T16-05-16"
86+
"[!] No WPVulnDB API Token given, as a result vulnerability data has not been output.\n[!] You can get a free API token with 50 daily requests by registering at https://wpvulndb.com/users/sign_up\nThis issue is unfixed since 2020-04-08T16-05-16"
8787
],
8888
"alerts": [],
8989
"fixed": [

wpwatcher/report.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _add_unfixed_warnings(
142142
) -> None:
143143
"""
144144
A line will be added at the end of the warning like:
145-
"Warning: This issue is unfixed since {date}"
145+
"This issue is unfixed since {date}"
146146
"""
147147

148148
for unfixed_item in unfixed_items:
@@ -166,12 +166,12 @@ def _add_unfixed_warnings(
166166
older_warn_last_line = last_wp_report[issue_type][
167167
older_issue_index
168168
].splitlines()[-1]
169-
if "Warning: This issue is unfixed" in older_warn_last_line:
169+
if "This issue is unfixed" in older_warn_last_line:
170170
self[issue_type][issue_index] += older_warn_last_line
171171
else:
172172
self[issue_type][
173173
issue_index
174-
] += f"Warning: This issue is unfixed since {last_wp_report['datetime']}"
174+
] += f"This issue is unfixed since {last_wp_report['datetime']}"
175175

176176
def _get_fixed_n_unfixed_issues(
177177
self, last_wp_report: 'ScanReport', issue_type: str

0 commit comments

Comments
 (0)