mirror of
https://github.com/resf/distro-tools.git
synced 2024-10-08 09:04:10 +00:00
Fix specific OSV get
This commit is contained in:
parent
6915813e2d
commit
1d90b6db2e
@ -260,7 +260,7 @@ async def get_advisories_osv(
|
||||
|
||||
@router.get("/{advisory_id}", response_model=OSVAdvisory, response_model_exclude_none=True)
|
||||
async def get_advisory_osv(advisory_id: str):
|
||||
advisory = await Advisory.filter(name=advisory_id, type="Security").prefetch_related(
|
||||
advisory = await Advisory.filter(name=advisory_id, kind="Security").prefetch_related(
|
||||
"packages",
|
||||
"cves",
|
||||
"fixes",
|
||||
|
Loading…
Reference in New Issue
Block a user