From c5697c7d68070e6a166ee2396029550f52694e4e Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 9 Feb 2026 06:52:56 +0100 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- freqtrade/freqai/data_drawer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_drawer.py b/freqtrade/freqai/data_drawer.py index 2e381f981..5afa5a74a 100644 --- a/freqtrade/freqai/data_drawer.py +++ b/freqtrade/freqai/data_drawer.py @@ -446,7 +446,7 @@ class FreqaiDataDrawer: model_folders = [x for x in self.full_path.iterdir() if x.is_dir()] - pattern = re.compile(r"sub-train-([^_]+)_(\d{10})") + pattern = re.compile(r"^sub-train-(.+)_(\d{10})$") delete_dict: dict[str, Any] = {}