From c9eab0ccab8ca4310f1ef8e94d88e71a0abe810a Mon Sep 17 00:00:00 2001 From: "fefe.clochette" Date: Tue, 9 Dec 2025 13:44:30 +0100 Subject: [PATCH] Auto-commit for deploy to production - 2025-12-09 13:44:30 --- assets/js/family-calendar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/family-calendar.js b/assets/js/family-calendar.js index e438a5f..d5a0214 100644 --- a/assets/js/family-calendar.js +++ b/assets/js/family-calendar.js @@ -137,7 +137,10 @@ const events = []; // on pourra y ajouter OFF_CAROLE, CENTRE, etc. plus tard async function fetchSchoolHolidays(anneeScolaire, zoneLabel) { const baseUrl = "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({ where, limit: "100",