feat: füge neue Funktionen zur Analyse und Zählung von Lektionen hinzu, einschließlich der Generierung von Lernkontrollpunkten
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
All checks were successful
Deploy to production / deploy (push) Successful in 2m3s
This commit is contained in:
25
backend/scripts/count-per-lesson-24-43.mjs
Normal file
25
backend/scripts/count-per-lesson-24-43.mjs
Normal file
@@ -0,0 +1,25 @@
|
||||
import { BISAYA_LESSONS_24_43_BY_NUMBER, BISAYA_DIDACTICS_24_43 } from './bisaya-course-plan-24-43.js';
|
||||
|
||||
const out = [];
|
||||
for (let n = 24; n <= 43; n++) {
|
||||
const lesson = BISAYA_LESSONS_24_43_BY_NUMBER[n];
|
||||
if (!lesson) {
|
||||
out.push({ lesson: n, title: null, corePatterns: 0 });
|
||||
continue;
|
||||
}
|
||||
const title = lesson.title;
|
||||
const didactic = BISAYA_DIDACTICS_24_43[title];
|
||||
let count = 0;
|
||||
if (didactic && didactic.corePatterns) {
|
||||
count += didactic.corePatterns.length;
|
||||
}
|
||||
out.push({ lesson: n, title, corePatterns: count });
|
||||
}
|
||||
|
||||
// Print nicely
|
||||
for (const r of out) {
|
||||
console.log(`Lektion ${r.lesson}: ${r.title || '[nicht definiert]'} — ${r.corePatterns} corePatterns`);
|
||||
}
|
||||
|
||||
const total = out.reduce((s,r)=>s+r.corePatterns,0);
|
||||
console.log(`\nGesamt corePatterns (Lektionen 24–43 Summe): ${total}`);
|
||||
Reference in New Issue
Block a user