From 2a062cf484203189828de7dffe745d9139b6eb4e Mon Sep 17 00:00:00 2001 From: Trey t Date: Sat, 11 Apr 2026 20:47:31 -0500 Subject: [PATCH] Bump courseDataVersion to 4 for sentence gap-fill re-seed Existing installs will delete and re-seed all VocabCard/CourseDeck data on next launch, picking up the ~6,300 new example sentences and blank fields added for the Complete the Sentence quiz type. Co-Authored-By: Claude Opus 4.6 (1M context) --- Conjuga/Conjuga/Services/DataLoader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conjuga/Conjuga/Services/DataLoader.swift b/Conjuga/Conjuga/Services/DataLoader.swift index 577bc3d..635fde4 100644 --- a/Conjuga/Conjuga/Services/DataLoader.swift +++ b/Conjuga/Conjuga/Services/DataLoader.swift @@ -123,7 +123,7 @@ actor DataLoader { /// Re-seed course data if the version has changed (e.g. examples were added). /// Call this on every launch — it checks a version key and only re-seeds when needed. static func refreshCourseDataIfNeeded(container: ModelContainer) async { - let currentVersion = 3 // Bump this whenever course_data.json changes + let currentVersion = 4 // Bump this whenever course_data.json changes let key = "courseDataVersion" let shared = UserDefaults.standard