From 88345df73688b5612c9a5dddfa4be346592070d7 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Thu, 13 Feb 2025 21:51:47 -0800 Subject: [PATCH] refactor: Simplify non_canslim filtering logic in report loading --- src/utils/report_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/report_utils.py b/src/utils/report_utils.py index e2e0b47..1b3351e 100644 --- a/src/utils/report_utils.py +++ b/src/utils/report_utils.py @@ -39,10 +39,12 @@ def load_scanner_reports(scanner_type: str = None): if not file.name.startswith("canslim_"): print(f"Skipping {file.name} - not a CANSLIM report") # Debug print continue - elif scanner_type == "non_canslim": # New option for non-CANSLIM reports + elif scanner_type == "non_canslim": + # Accept any file that doesn't start with "canslim_" if file.name.startswith("canslim_"): print(f"Skipping {file.name} - is a CANSLIM report") # Debug print continue + # No other conditions - accept all non-CANSLIM files reports.append({ 'name': file.name,