This commit is contained in:
root
2026-07-05 15:23:57 +00:00
parent 60c82bd188
commit 3a6bc8d4cb
+1 -1
View File
@@ -654,7 +654,7 @@ func (s *QuizService) GetBookmarkedTargets(username, category string) []TargetIn
func (s *QuizService) GetBookmarkedQuestions(username, category, difficulty string) []Question { func (s *QuizService) GetBookmarkedQuestions(username, category, difficulty string) []Question {
query := ` query := `
SELECT q.id, q.source, q.category, q.question_text, q.choice1, q.choice2, q.choice3, q.choice4, COALESCE(q.choice5, '') as choice5, SELECT q.id, q.source, q.category, q.question_text, q.choice1, q.choice2, q.choice3, q.choice4, COALESCE(q.choice5, '') as choice5,
q.correct_answer, q.correct_answer_str, q.explanation, q.difficulty, q.passage, q.image_url, q.correct_answer, COALESCE(q.correct_answer_str, '') as correct_answer_str, q.explanation, COALESCE(q.difficulty, '') as difficulty, COALESCE(q.passage, '') as passage, COALESCE(q.image_url, '') as image_url,
COALESCE(e.explain, '') as geminiExplanation, COALESCE(e.explain, '') as geminiExplanation,
1 as isBookmarked, 1 as isBookmarked,
COALESCE(q.subject, '') as subject, COALESCE(q.subject, '') as subject,