mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-18 17:28:28 +00:00
Hydra API can return list[str] for boostVersion
This commit is contained in:
parent
9648bfba93
commit
ac0e814810
@ -87,7 +87,7 @@ class Advisory(JSONWizard):
|
|||||||
portal_child_ids: list[str] = None
|
portal_child_ids: list[str] = None
|
||||||
portal_product_filter: list[str] = None
|
portal_product_filter: list[str] = None
|
||||||
boostProduct: str = None
|
boostProduct: str = None
|
||||||
boostVersion: int = None
|
boostVersion: int | list[str] = None
|
||||||
detectedProducts: list[str] = None
|
detectedProducts: list[str] = None
|
||||||
caseCount: int = None
|
caseCount: int = None
|
||||||
caseCount_365: int = None
|
caseCount_365: int = None
|
||||||
@ -208,4 +208,5 @@ class API:
|
|||||||
raise Exception((await response.text()))
|
raise Exception((await response.text()))
|
||||||
elif body.get("response", {}).get("numFound", 0) == 0:
|
elif body.get("response", {}).get("numFound", 0) == 0:
|
||||||
return []
|
return []
|
||||||
return Advisory.from_list(list(body["response"]["docs"]))
|
advisory_list = list(body["response"]["docs"])
|
||||||
|
return Advisory.from_list(advisory_list)
|
||||||
|
Loading…
Reference in New Issue
Block a user