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

Method to_dict

vulnerabilities/models.py:2880–2885  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2878 ]
2879
2880 def to_dict(self):
2881 return {
2882 "patch_url": self.patch_url,
2883 "patch_text": self.patch_text,
2884 "patch_checksum": self.patch_checksum,
2885 }
2886
2887 def to_patch_data(self):
2888 """Return `PatchData` from the Patch."""

Callers 9

to_patch_dataMethod · 0.95
update_purl_versionFunction · 0.45
purl_to_dictFunction · 0.45
compute_content_idFunction · 0.45
compute_content_id_v2Function · 0.45
to_dictMethod · 0.45
do_importMethod · 0.45
process_advisoriesMethod · 0.45
get_core_purlFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected