Skip to content

Commit

Permalink
fix spliting report path
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Jul 4, 2024
1 parent fa96dec commit 31baf71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/upload_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ def upload_reports(reports_folder: Union[Path, str]):
reports_folder = Path(reports_folder)
client = Client()
for p in reports_folder.glob("*/*/compatibility/*"):
concept, version, _, tool_file_name = p.as_posix().split("/")
concept, version, _, tool_file_name = (
p.relative_to(reports_folder).as_posix().split("/")
)
tool = tool_file_name[: -len(".yaml")]

if p.suffix in (".yml", ".yaml"):
Expand Down

0 comments on commit 31baf71

Please sign in to comment.