Skip to content

Commit

Permalink
fixed sri review candidate output
Browse files Browse the repository at this point in the history
  • Loading branch information
cockroacher committed Sep 30, 2024
1 parent 303d89b commit c25f32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/sri_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def rate_sri(result_dict, global_translation, local_translation,
errors_str_list = ''
errors = result_dict[domain]['sri-findings']['sri-errors']
for error in errors:
errors_str_list += f" - '{error}'\r\n"
errors_str_list += f" - {error}\r\n"

sub_rating.set_standards(3.0,
local_translation(
Expand Down Expand Up @@ -85,7 +85,7 @@ def rate_sri(result_dict, global_translation, local_translation,
candidates_str_list = ''
candidates = result_dict[domain]['sri-findings']['sri-candidates']
for candidate in candidates:
candidates_str_list += f" - '{candidate}'\r\n"
candidates_str_list += f" - `{candidate}`\r\n"

rating.set_integrity_and_security(1.0,
local_translation(
Expand Down

0 comments on commit c25f32b

Please sign in to comment.