From f37b7727cf831b7b538f1eb6534992ba9e22f8e3 Mon Sep 17 00:00:00 2001 From: patrick-troy Date: Wed, 9 Oct 2024 16:51:05 +0100 Subject: [PATCH] fix regex to only remove reports relating to dataset --- liiatools_pipeline/ops/common_org.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liiatools_pipeline/ops/common_org.py b/liiatools_pipeline/ops/common_org.py index 1b09293..f52975d 100644 --- a/liiatools_pipeline/ops/common_org.py +++ b/liiatools_pipeline/ops/common_org.py @@ -117,5 +117,5 @@ def create_reports( existing_shared_files = shared_folder().listdir("/") log.info(f"Exporting report {report} to shared folder...") - pl.remove_files(f"{report}", existing_shared_files, shared_folder()) + pl.remove_files(f"{report}_{config.dataset}", existing_shared_files, shared_folder()) report_data.export(shared_folder(), f"{report}_{config.dataset}_", "csv")