You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Finding.save is called once from serializers.py with dedupe_option=False because the finding is not ready yet, for example the endpoints are not built
3506
3506
# It is then called a second time with dedupe_option defaulted to true; now we can compute the hash_code and run the deduplication
3507
3507
elifdedupe_option:
3508
+
finding_id=self.idifself.idisnotNoneelse"unsaved"
3508
3509
ifself.hash_codeisnotNone:
3509
-
deduplicationLogger.debug("Hash_code already computed for finding %i", self.id)
3510
+
deduplicationLogger.debug("Hash_code already computed for finding: %s", finding_id)
3510
3511
else:
3511
3512
self.hash_code=self.compute_hash_code()
3512
-
deduplicationLogger.debug("Hash_code computed for finding %i: %s", self.id, self.hash_code)
3513
+
deduplicationLogger.debug("Hash_code computed for finding: %s: %s", finding_id, self.hash_code)
0 commit comments