Skip to content

Commit 77a1193

Browse files
MaffoochMaffooch
authored andcommitted
Return dedupe to a "working" state
1 parent 7ba763a commit 77a1193

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dojo/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,16 +1367,16 @@ def save(self, dedupe_option=True, false_history=False, rules_option=True, *args
13671367
else:
13681368
super(Finding, self).save(*args, **kwargs)
13691369

1370-
if (self.line is not None and self.file_path is not None) and (self.endpoints.count() == 0):
1370+
if (self.file_path is not None) and (self.endpoints.count() == 0):
13711371
self.static_finding = True
13721372
self.dynamic_finding = False
1373-
elif (self.line is not None and self.file_path is not None):
1373+
elif (self.file_path is not None):
13741374
self.static_finding = True
13751375

13761376
# Compute hash code before dedupe
13771377
if (self.hash_code is None):
13781378
if((self.dynamic_finding and (self.endpoints.count() > 0)) or
1379-
(self.static_finding and (self.line is not None and self.file_path is not None))):
1379+
(self.static_finding and (self.file_path is not None))):
13801380
self.hash_code = self.compute_hash_code()
13811381
self.found_by.add(self.test.test_type)
13821382

0 commit comments

Comments
 (0)