fix: incorrect call for searching vendor and product
Some checks failed
Python application - MyPy / Python 3.12 sample (push) Has been cancelled
Python application - MyPy / Python 3.13 sample (push) Has been cancelled
Python application - MyPy / Python 3.10 sample (push) Has been cancelled
Python application - MyPy / Python 3.11 sample (push) Has been cancelled
Python application - Test Public Interface / Python 3.11 sample (push) Has been cancelled
Python application - Test Public Interface / Python 3.10 sample (push) Has been cancelled
Python application - Test Public Interface / Python 3.12 sample (push) Has been cancelled
Python application - Test Public Interface / Python 3.13 sample (push) Has been cancelled

This commit is contained in:
Raphaël Vinot 2024-11-26 12:17:51 +01:00
parent e4a89948a4
commit 6db7ecf62a
2 changed files with 4 additions and 5 deletions

View file

@ -3,7 +3,6 @@
from __future__ import annotations
import logging
import functools
from datetime import date, datetime
from importlib.metadata import version
@ -143,7 +142,7 @@ class PyVulnerabilityLookup():
:param vendor: A vendor owning products (must be in the known vendor list)
:param product: A product owned by that vendor
'''
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'browse', vendor, product))))
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'search', vendor, product))))
return r.json()
# #### Comments ####