From 2a8e3d8ee46c3135c34b8406ee56d4fe28888303 Mon Sep 17 00:00:00 2001 From: Maximilian Schulz <83698606+maxschulz-COL@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:01:02 +0100 Subject: [PATCH] [CI] Fix redundant / in file path (#839) --- tools/pycafe/create_pycafe_links.py | 4 ++-- vizro-core/examples/scratch_dev/README2.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 vizro-core/examples/scratch_dev/README2.md diff --git a/tools/pycafe/create_pycafe_links.py b/tools/pycafe/create_pycafe_links.py index 47dd36a13..68c94e798 100644 --- a/tools/pycafe/create_pycafe_links.py +++ b/tools/pycafe/create_pycafe_links.py @@ -89,8 +89,8 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None # Add files to the json_object json_object["files"] = [ { - "name": file["path"].removeprefix(f"{directory}/"), - "url": f"{base_url}/{file['path'].removeprefix(f'{directory}/')}", + "name": file["path"].removeprefix(f"{directory}"), + "url": f"{base_url}{file['path'].removeprefix(f'{directory}')}", } for file in folder_files # Filter out app.py and requirements.txt (as already added above) diff --git a/vizro-core/examples/scratch_dev/README2.md b/vizro-core/examples/scratch_dev/README2.md new file mode 100644 index 000000000..91cdc18cc --- /dev/null +++ b/vizro-core/examples/scratch_dev/README2.md @@ -0,0 +1 @@ +# Also to be deleted \ No newline at end of file