Skip to content

Commit e60af06

Browse files
authored
Set last reviewed date and author for finding
Update finding with last reviewed date and author.
1 parent 3ab9f54 commit e60af06

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dojo/jira_link/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ def check_for_and_create_comment(parsed_json):
285285
finding.notes.add(new_note)
286286
finding.jira_issue.jira_change = timezone.now()
287287
finding.jira_issue.save()
288-
finding.save()
288+
finding.last_reviewed = note.date
289+
finding.last_reviewed_by = author
290+
finding.save(update_fields=["last_reviewed", "last_reviewed_by"])
289291
return None
290292

291293

0 commit comments

Comments
 (0)