Skip to content

Commit 21816f9

Browse files
committed
chore: revert report file names to artifact names
Signed-off-by: behnazh-w <[email protected]>
1 parent 516c69b commit 21816f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/macaron/database/table_definitions.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,19 @@ def __init__(self, purl: str, analysis: Analysis, repository: Optional["Reposito
164164

165165
@property
166166
def report_file_name(self) -> str:
167+
"""Set the report file name using the name.
168+
169+
Return
170+
------
171+
str
172+
The report file name.
173+
"""
174+
# Sanitize the file name.
175+
allowed_chars = string.ascii_letters + string.digits + "-"
176+
return "".join(c if c in allowed_chars else "_" for c in self.name)
177+
178+
@property
179+
def report_file_purl(self) -> str:
167180
"""Set the report file name for this component using the PURL string.
168181
169182
Return

0 commit comments

Comments
 (0)