fixing migration script
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s

This commit is contained in:
Tudor Sitaru
2026-01-06 20:56:09 +00:00
parent 35e62723bb
commit 491302d409

View File

@@ -114,11 +114,12 @@ def load_csv_data(data_dir: Path) -> pd.DataFrame:
if not year: if not year:
continue continue
csv_files = list(folder.glob("*.csv")) # Specifically look for the KS2 results file
if not csv_files: ks2_file = folder / "england_ks2final.csv"
if not ks2_file.exists():
continue continue
csv_file = csv_files[0] csv_file = ks2_file
print(f" Loading {csv_file.name} (year {year})...") print(f" Loading {csv_file.name} (year {year})...")
try: try: