Skip to content

Commit

Permalink
[feat] removes logs, adds condition
Browse files Browse the repository at this point in the history
  • Loading branch information
inesmartins-swordhealth committed Nov 16, 2023
1 parent 4f44110 commit 7185609
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dojo/finding/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,6 @@ def process_finding_form(self, request: HttpRequest, finding: Finding, context:
new_finding.tags = context["form"].cleaned_data["tags"]
# Handle verified date
if new_finding.verified is True and new_finding.verified_date is None:
logger.error('Updates verification date on process_finding_form')
new_finding.verified_date = timezone.now()
# Handle group related things
if "group" in context["form"].cleaned_data:
Expand Down Expand Up @@ -1342,7 +1341,8 @@ def defect_finding_review(request, fid):
else:
finding.active = True
finding.verified = True
finding.verified_date = now
if finding.verified_date is None:
finding.verified_date = now
finding.mitigated = None
finding.mitigated_by = None
finding.is_mitigated = False
Expand Down Expand Up @@ -2090,7 +2090,6 @@ def promote_to_finding(request, fid):
new_finding.mitigated = None
new_finding.verified = True
if new_finding.verified_date is None:
logger.error('Updates verification date on promote_to_finding')
new_finding.verified_date = timezone.now()
new_finding.out_of_scope = False

Expand Down

0 comments on commit 7185609

Please sign in to comment.