Skip to content

Commit 110ef68

Browse files
author
Valentijn Scholten
committed
fix return
1 parent 4121253 commit 110ef68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dojo/importers/default_reimporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,4 +776,5 @@ def calculate_unsaved_finding_hash_code(
776776
unsaved_finding: Finding,
777777
) -> str:
778778
# this is overridden in Pro, but will still call this via super()
779+
deduplicationLogger.debug("Calculating hash code for unsaved finding")
779780
return unsaved_finding.compute_hash_code()

dojo/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,8 @@ def compute_hash_code(self):
29162916
# Allow Pro to overwrite compute hash_code which gets dedupe settings from a database instead of django.settings
29172917
from dojo.utils import get_custom_method # noqa: PLC0415 circular import
29182918
if compute_hash_code_method := get_custom_method("FINDING_COMPUTE_HASH_METHOD"):
2919-
compute_hash_code_method(self)
2919+
deduplicationLogger.debug("using custom compute_hash_code method")
2920+
return compute_hash_code_method(self)
29202921

29212922
# Check if all needed settings are defined
29222923
if not hasattr(settings, "HASHCODE_FIELDS_PER_SCANNER") or not hasattr(settings, "HASHCODE_ALLOWS_NULL_CWE") or not hasattr(settings, "HASHCODE_ALLOWED_FIELDS"):

0 commit comments

Comments
 (0)