MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / to_patch_data

Method to_patch_data

vulnerabilities/models.py:2887–2891  ·  view source on GitHub ↗

Return `PatchData` from the Patch.

(self)

Source from the content-addressed store, hash-verified

2885 }
2886
2887 def to_patch_data(self):
2888 """Return `PatchData` from the Patch."""
2889 from vulnerabilities.importer import PatchData
2890
2891 return PatchData.from_dict(self.to_dict())
2892
2893
2894class PackageCommitPatch(models.Model):

Callers 1

to_advisory_dataMethod · 0.80

Calls 2

to_dictMethod · 0.95
from_dictMethod · 0.45

Tested by

no test coverage detected