bug fix
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 56s

This commit is contained in:
Tudor
2026-01-08 16:18:11 +00:00
parent 40348cb1bd
commit 1d19c88e49

View File

@@ -306,10 +306,8 @@ async def get_schools(
end_idx = start_idx + page_size
schools_df = schools_df.iloc[start_idx:end_idx]
# Remove internal columns before sending
# Remove internal columns before sending (keep distance if present)
output_cols = [c for c in schools_df.columns if c not in ["latitude", "longitude"]]
if "distance" in schools_df.columns:
output_cols.append("distance")
return {
"schools": clean_for_json(schools_df[output_cols]),