Auto-commit for deploy to production - 2025-12-09 13:44:30
This commit is contained in:
@@ -137,7 +137,10 @@ const events = []; // on pourra y ajouter OFF_CAROLE, CENTRE, etc. plus tard
|
|||||||
async function fetchSchoolHolidays(anneeScolaire, zoneLabel) {
|
async function fetchSchoolHolidays(anneeScolaire, zoneLabel) {
|
||||||
const baseUrl =
|
const baseUrl =
|
||||||
"https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-en-calendrier-scolaire/records";
|
"https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-en-calendrier-scolaire/records";
|
||||||
const where = `annee_scolaire='${anneeScolaire}' AND zones LIKE '%${zoneLabel}%' AND population='-'`;
|
|
||||||
|
// On filtre uniquement sur l'année scolaire et la zone
|
||||||
|
const where = `annee_scolaire='${anneeScolaire}' AND zones LIKE '%${zoneLabel}%' AND population<>'Enseignants'`;
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
where,
|
where,
|
||||||
limit: "100",
|
limit: "100",
|
||||||
|
|||||||
Reference in New Issue
Block a user