This commit is contained in:
root
2026-07-05 12:29:33 +00:00
parent a9bb83b4e5
commit 60c82bd188
3 changed files with 111 additions and 21 deletions
+7
View File
@@ -1802,6 +1802,13 @@ func (s *QuizService) GenerateGoPracticalExams(count int, useGeminiAPI bool, del
continue
}
// Force correctAnswerStr to "주관식" for descriptive questions to guarantee descriptive UI layout
if examType == "서술형" {
gq.CorrectAnswerStr = "주관식"
} else if examType == "혼합형" && i%2 == 0 {
gq.CorrectAnswerStr = "주관식"
}
// Save to DB (Mutex Lock)
s.dbMu.Lock()
// Generate next ID