Skip to content

Commit cb68be4

Browse files
Merge remote-tracking branch 'upstream/dev' into perf3-reduce-saves
1 parent 74fd307 commit cb68be4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

dojo/importers/default_reimporter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,12 @@ def process_matched_mitigated_finding(
504504
# restart the sla start date to the current date, finding.save() will set new sla_expiration_date
505505
existing_finding.sla_start_date = self.now
506506
existing_finding = self.process_cve(existing_finding)
507+
if existing_finding.get_sla_configuration().restart_sla_on_reactivation:
508+
# restart the sla start date to the current date, finding.save() will set new sla_expiration_date
509+
existing_finding.sla_start_date = self.now
507510
# don't dedupe before endpoints are added, postprocessing will be done on next save (in calling method)
508511
existing_finding.save_no_options()
512+
509513
note = Notes(entry=f"Re-activated by {self.scan_type} re-upload.", author=self.user)
510514
note.save()
511515
endpoint_statuses = existing_finding.status_finding.exclude(

dojo/templatetags/multiply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55

66
@register.filter
7-
def multiply(value, arg): # noqa: FURB118
7+
def multiply(value, arg):
88
return value * arg

0 commit comments

Comments
 (0)