refactor: Simplify non_canslim filtering logic in report loading

This commit is contained in:
Bobby (aider) 2025-02-13 21:51:47 -08:00
parent d8658e9b8b
commit 88345df736

View File

@ -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,