Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ae010a715 | ||
|
|
75af3ccd56 |
@@ -75,7 +75,7 @@ async function parseSemesterStartDate() {
|
|||||||
try {
|
try {
|
||||||
const { startYear, endYear } = getCurrentAcademicYear();
|
const { startYear, endYear } = getCurrentAcademicYear();
|
||||||
const currentMonth = new Date().getMonth();
|
const currentMonth = new Date().getMonth();
|
||||||
const currentSemester = currentMonth >= 1 && currentMonth <= 6 ? 2 : 1;
|
const currentSemester = currentMonth >= 0 && currentMonth <= 6 ? 2 : 1;
|
||||||
|
|
||||||
const url = `https://www.dm.unipi.it/didattica/lezioni-esami/calendario-delle-attivita-didattiche/calendario-delle-attivita-didattiche-a-a-${startYear}-${endYear.toString().slice(-2)}/`;
|
const url = `https://www.dm.unipi.it/didattica/lezioni-esami/calendario-delle-attivita-didattiche/calendario-delle-attivita-didattiche-a-a-${startYear}-${endYear.toString().slice(-2)}/`;
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
"anno-3": "687e68bb01ee9300198320eb",
|
"anno-3": "687e68bb01ee9300198320eb",
|
||||||
"magistrale": "687e6a9f96ea080019d439d5"
|
"magistrale": "687e6a9f96ea080019d439d5"
|
||||||
},
|
},
|
||||||
"semesterStartDateStr": "24 settembre 2025",
|
"semesterStartDateStr": "23 settembre 2026",
|
||||||
"firstMondayDate": "2025-09-29T00:00:00.000Z",
|
"firstMondayDate": "2026-09-28T00:00:00.000Z",
|
||||||
"buttonText": "Vai al 29 settembre! 🚀",
|
"buttonText": "Vai al 28 settembre! 🚀",
|
||||||
"lastUpdated": "2025-08-28T13:15:33.748Z",
|
"lastUpdated": "2026-09-02T19:43:46.921Z",
|
||||||
"academicYear": {
|
"academicYear": {
|
||||||
"startYear": 2025,
|
"startYear": 2026,
|
||||||
"endYear": 2026
|
"endYear": 2027
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user