Skip to content

Commit

Permalink
add username
Browse files Browse the repository at this point in the history
  • Loading branch information
hblankenship committed Nov 19, 2024
1 parent cdf56be commit 82c6e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/finding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ def request_finding_review(request, fid):
jira_helper.push_to_jira(finding.finding_group)

reviewers = Dojo_User.objects.filter(id__in=form.cleaned_data["reviewers"])
reviewers_string = ", ".join([str(user) for user in reviewers])
reviewers_string = f"({user.id}), ".join([str(user) for user in reviewers])
reviewers_usernames = [user.username for user in reviewers]
logger.debug(f"Asking {reviewers_string} for review")

Expand All @@ -1708,7 +1708,7 @@ def request_finding_review(request, fid):
finding=finding,
reviewers=reviewers,
recipients=reviewers_usernames,
description=f'User {user.get_full_name()} has requested that user(s) {reviewers_string} review the finding "{finding.title}" for accuracy:\n\n{new_note}',
description=f'User {user.get_full_name()}({user.id}) has requested that user(s) {reviewers_string} review the finding "{finding.title}" for accuracy:\n\n{new_note}',
icon="check",
url=reverse("view_finding", args=(finding.id,)),
)
Expand Down

0 comments on commit 82c6e5d

Please sign in to comment.