fix(api): inspectorate and Ofsted listing in payloads; Ofsted links that resolve (H4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b5e681482
commit
69da9d84db
7 files changed
+89
-6
No files matched your search
@@ -1048,6 +1048,11 @@ async def get_school_details(request: Request, urn: int):
|
||||
"age_range": latest.get("age_range", ""),
|
||||
"has_sixth_form": latest.get("has_sixth_form"),
|
||||
"nursery_provision": latest.get("nursery_provision"),
|
||||
# What the Ofsted badge may say when there is no inspection record
|
||||
# (audit H4): the inspectorate GIAS names, and whether Ofsted's own
|
||||
# data lists the school at all.
|
||||
"inspectorate": latest.get("inspectorate"),
|
||||
"ofsted_listed": latest.get("ofsted_listed"),
|
||||
# The header's Selective flag reads it (lib/schoolFacts).
|
||||
"admissions_policy": latest.get("admissions_policy"),
|
||||
"status": latest.get("status"),
|
||||
@@ -1210,6 +1215,9 @@ async def compare_schools(
|
||||
# schools get entrance-test framing, never the distance template.
|
||||
"admissions_policy": convert_to_native(latest.get("admissions_policy")),
|
||||
"has_sixth_form": convert_to_native(latest.get("has_sixth_form")),
|
||||
# Audit H4: what compare may say when there is no inspection record.
|
||||
"inspectorate": convert_to_native(latest.get("inspectorate")),
|
||||
"ofsted_listed": convert_to_native(latest.get("ofsted_listed")),
|
||||
"capacity": convert_to_native(latest.get("capacity")),
|
||||
"gias_total_pupils": convert_to_native(latest.get("gias_total_pupils")),
|
||||
"trust_name": convert_to_native(latest.get("trust_name")),
|
||||
|
||||
Reference in new issue
Block a user