feat(bisaya-course): add new lesson and update course creation logic
All checks were successful
Deploy to production / deploy (push) Successful in 2m51s

- Introduced a new lesson titled "Zahlen & Preise" to enhance the numerical curriculum in Bisaya.
- Updated the course creation logic to check for existing "Familien"-Bisaya courses, ensuring idempotency in course creation.
- Enhanced the lesson didactics by mapping legacy titles to current lesson keys, improving data consistency.
- Adjusted the course generation script to limit Bisaya courses to German-speaking learners only, streamlining course offerings.
This commit is contained in:
Torsten Schulz (local)
2026-04-16 22:16:23 +02:00
parent 6dce418728
commit 68ac5ec281
6 changed files with 406 additions and 21 deletions

View File

@@ -5169,6 +5169,10 @@ async function findOrCreateSystemUser() {
function getExercisesForLesson(lesson) {
const lessonTitle = lesson.title;
// Alte Kurstitel (DB noch nicht migriert)
if (lessonTitle === 'Zahlen & Preise' && BISAYA_EXERCISES['Zahlen 120']) {
return BISAYA_EXERCISES['Zahlen 120'];
}
// Suche nach exaktem Titel
if (BISAYA_EXERCISES[lessonTitle]) {
return BISAYA_EXERCISES[lessonTitle];
@@ -5254,6 +5258,7 @@ async function createBisayaCourseContent() {
'Zeitformen - Grundlagen',
'Zeit & Datum',
'Einkaufen & Preise',
'Zahlen & Preise',
'Zahlen 120',
'Zahlen: Zehner',
'Zahlen: Hunderter',