Closed francois-le-ko4la closed 10 months ago
Arf! I see the issue. In your code, when you are in 2/1/2024 it will take the 2024/2025 period because you take the current year...
var currentYear = today.getFullYear()
...
var schoolHolidaysApi =
'https://data.education.gouv.fr/api/records/1.0/search/?dataset=fr-en-calendrier-scolaire&q=&rows=100&facet=description&facet=start_date&facet=end_date&facet=zones&facet=annee_scolaire&refine.start_date='+currentYear+'&refine.location='+this.academy
var entireSchoolHolidaysCalendarApi =
'https://data.education.gouv.fr/api/records/1.0/search/?dataset=fr-en-calendrier-scolaire&q=&rows=100&facet=description&facet=start_date&facet=end_date&facet=location&facet=zones&refine.location='+this.academy+'&refine.annee_scolaire='+currentYear+'-'+nextYear
@francois-le-ko4la , please check with new version 1.1.8 and let me know in the comments. I will close issue.
Hello, Fixes the issue on my side. Thanks for this plugin.
User confirmed the fix
NR Version: 3.1.3 Node Info: Version: 1.1.7 - Updated 1 month ago
Hi,
Honnestly thanks a lot for this pluggin ! Today I saw an issue with the plugin that help me to manage my covers. ^^ isSchoolHolidays return a bad value and thats seems to be an issue with Year selection.
I get on debug mode :
When I take a look on my rednode console I get :