Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
248
def
get_published_date(raw_data):
249
published = raw_data.get(
"published"
)
250
return
published and dateparser.parse(date_string=published)
251
252
253
def
get_severities(raw_data, url) -> Iterable[VulnerabilitySeverity]:
Callers
4
test_get_published_date1
Method · 0.90
test_get_published_date2
Method · 0.90
test_get_published_date3
Method · 0.90
parse_advisory_data_v3
Function · 0.70
Calls
2
get
Method · 0.45
parse
Method · 0.45
Tested by
3
test_get_published_date1
Method · 0.72
test_get_published_date2
Method · 0.72
test_get_published_date3
Method · 0.72