updates for secondary schools
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 46s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m15s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 46s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m15s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
SchoolSearchParams,
|
||||
RankingsParams,
|
||||
APIError,
|
||||
LAaveragesResponse,
|
||||
} from './types';
|
||||
|
||||
// ============================================================================
|
||||
@@ -241,6 +242,25 @@ export async function fetchMetrics(
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch per-LA average Attainment 8 score for secondary schools
|
||||
*/
|
||||
export async function fetchLAaverages(
|
||||
options: RequestInit = {}
|
||||
): Promise<LAaveragesResponse> {
|
||||
const url = `${API_BASE_URL}/la-averages`;
|
||||
|
||||
const response = await fetch(url, {
|
||||
...options,
|
||||
next: {
|
||||
revalidate: 3600,
|
||||
...options.next,
|
||||
},
|
||||
});
|
||||
|
||||
return handleResponse<LAaveragesResponse>(response);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch database statistics and info
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user