Skip to content

Commit 5c405a1

Browse files
authored
removed redundant strings in view (DefectDojo#4365)
Co-authored-by: Chris Fort <[email protected]>
1 parent 917ef17 commit 5c405a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dojo/engagement/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def import_scan_results(request, eid=None, pid=None):
601601
version=version, branch_tag=branch_tag, build_id=build_id, commit_hash=commit_hash, push_to_jira=push_to_jira,
602602
close_old_findings=close_old_findings)
603603

604-
message = scan_type + '%s processed a total of %s findings' % (scan_type, finding_count)
604+
message = f'{scan_type} processed a total of {finding_count} findings'
605605

606606
if close_old_findings:
607607
message = message + ' and closed %d findings' % (closed_finding_count)

dojo/importers/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def update_import_history(type, active, verified, tags, minimum_severity, endpoi
9090

9191
def construct_imported_message(scan_type, finding_count=0, new_finding_count=0, closed_finding_count=0, reactivated_finding_count=0, untouched_finding_count=0):
9292
if finding_count:
93-
message = scan_type + '%s processed a total of %s findings' % (scan_type, finding_count)
93+
message = f'{scan_type} processed a total of {finding_count} findings'
9494

9595
if new_finding_count:
9696
message = message + ' created %d findings' % (new_finding_count)

0 commit comments

Comments
 (0)