fix: Use proper call for browsing vendors

This commit is contained in:
Raphaël Vinot 2024-12-09 14:23:00 +01:00
parent b9e4c53bde
commit 65244e3135
No known key found for this signature in database
GPG key ID: 32E4E1C133B3792F

View file

@ -133,7 +133,7 @@ class PyVulnerabilityLookup():
:params vendor: A vendor owning products (must be in the known vendor list)
'''
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'browse', vendor))))
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'browse', vendor))))
return r.json()
def get_vendor_product_vulnerabilities(self, vendor: str, product: str) -> list[str]: