fixing migration script
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user