Skip to content

Commit 6b8b978

Browse files
committed
Add docstring for get_advisory_url
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent ce1ea4c commit 6b8b978

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vulnerabilities/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ def get_importer_name(advisory):
559559

560560

561561
def get_advisory_url(file, base_path, url):
562+
"""
563+
Return the advisory URL constructed by combining the base URL with the relative file path.
564+
"""
562565
relative_path = str(file.relative_to(base_path)).strip("/")
563566
advisory_url = urljoin(url, relative_path)
564567
return advisory_url

0 commit comments

Comments
 (0)