We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ce96b commit c548fd2Copy full SHA for c548fd2
1 file changed
vulnerabilities/models.py
@@ -2800,7 +2800,7 @@ class PackageCommitPatch(models.Model):
2800
2801
def save(self, *args, **kwargs):
2802
if self.patch_text:
2803
- self.patch_checksum = hashlib.sha512(self.patch_text.encode("utf-8")).hexdigest()
+ self.patch_checksum = compute_patch_checksum(self.patch_text)
2804
super().save(*args, **kwargs)
2805
2806
class Meta:
0 commit comments