feat: erweitere Bisaya-Kursdidaktik um Unterstützung für Phase 5 und füge neue Übungen für Lektionen 44 und 45 hinzu
All checks were successful
Deploy to production / deploy (push) Successful in 32s

This commit is contained in:
Torsten Schulz (local)
2026-05-27 18:22:58 +02:00
parent d10e8746fe
commit 2f858edd5b
2 changed files with 15 additions and 2 deletions

View File

@@ -6061,6 +6061,12 @@ function getExercisesForLesson(lesson) {
return BISAYA_EXERCISES['Gefühlswortschatz & Reaktionen'];
}
}
if ([44, 45].includes(Number(lesson.lessonNumber))) {
return [
...(BISAYA_EXERCISES['Zahlen 120'] || []),
...(BISAYA_EXERCISES['Zahlen: Zehner'] || []).slice(1, 3)
];
}
const plannedTitle = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)]?.title;
if (plannedTitle && BISAYA_EXERCISES[plannedTitle]) {
return BISAYA_EXERCISES[plannedTitle];
@@ -6130,6 +6136,7 @@ async function createBisayaCourseContent() {
for (const lesson of lessons) {
const plannedLesson = BISAYA_LESSONS_24_43_BY_NUMBER[Number(lesson.lessonNumber)];
const repairsReassignedNumbersLesson = [44, 45].includes(Number(lesson.lessonNumber));
if (plannedLesson) {
await lesson.update({
title: plannedLesson.title,
@@ -6176,7 +6183,11 @@ async function createBisayaCourseContent() {
if (
existingCount > 0
&& !forceRebuildAll
&& (replacePlaceholders || SAFE_EXERCISE_UPDATE_TITLES.has(lesson.title))
&& (
replacePlaceholders
|| repairsReassignedNumbersLesson
|| SAFE_EXERCISE_UPDATE_TITLES.has(lesson.title)
)
) {
const lessonDidactics = getLessonDidactics(lesson);
const mergedGrammarFocus = mergeGrammarFocusForLesson(

View File

@@ -18,6 +18,7 @@ import {
} from './bisaya-course-plan-24-43.js';
import { BISAYA_PHASE3_DIDACTICS } from './bisaya-course-phase3-extension.js';
import { BISAYA_PHASE4_DIDACTICS } from './bisaya-course-phase4-extension.js';
import { BISAYA_PHASE5_DIDACTICS } from './bisaya-course-phase5-extension.js';
/** Alte Kurstitel → aktueller Schlüssel in LESSON_DIDACTICS (bestehende Datenbanken). */
export const LEGACY_DIDACTICS_TITLE_MAP = {
@@ -499,7 +500,8 @@ export const LESSON_DIDACTICS = {
...BISAYA_RELATIONSHIP_ANCHOR_DIDACTICS,
...BISAYA_DIDACTICS_24_43,
...BISAYA_PHASE3_DIDACTICS,
...BISAYA_PHASE4_DIDACTICS
...BISAYA_PHASE4_DIDACTICS,
...BISAYA_PHASE5_DIDACTICS
};
function resolveDidacticsForLesson(lesson) {