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

Function get_published_date

vulnerabilities/pipes/osv_v2.py:248–250  ·  view source on GitHub ↗
(raw_data)

Source from the content-addressed store, hash-verified

246
247
248def get_published_date(raw_data):
249 published = raw_data.get("published")
250 return published and dateparser.parse(date_string=published)
251
252
253def get_severities(raw_data, url) -> Iterable[VulnerabilitySeverity]:

Callers 4

parse_advisory_data_v3Function · 0.70

Calls 2

getMethod · 0.45
parseMethod · 0.45

Tested by 3