feat: implement curriculum service and learning automation infrastructure
All checks were successful
On Push to Main / test (push) Successful in 30s
On Push to Main / publish (push) Successful in 57s
On Push to Main / deploy-dev (push) Successful in 1m33s

This commit is contained in:
RaymondVerhoef
2026-05-20 11:44:58 +02:00
parent 2752fb95d9
commit 6fe66bbd93
5 changed files with 12 additions and 9 deletions

View File

@@ -8,7 +8,8 @@ Always write in clear, professional English.
ALWAYS return valid JSON only — no markdown code blocks, no extra text.`;
async function selectTestTopics(userId, weekNumber) {
const topics = await db.getTopics();
const allTopics = await db.getTopics();
const topics = allTopics.filter(t => t.type !== 'fact' && t.learning_relevance !== 'exclude');
if (!topics || topics.length === 0) return { primaryTopic: null, reviewTopics: [], isReviewWeek: false };
// Try curriculum-based selection first