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

Function get_published_date

vulnerabilities/importers/osv.py:134–136  ·  view source on GitHub ↗
(raw_data)

Source from the content-addressed store, hash-verified

132
133
134def get_published_date(raw_data):
135 published = raw_data.get("published")
136 return published and dateparser.parse(date_string=published)
137
138
139def get_severities(raw_data) -> Iterable[VulnerabilitySeverity]:

Callers 1

parse_advisory_dataFunction · 0.70

Calls 2

getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected