dev_forum
SylorHuang 6 years ago
parent 3eadedc9ad
commit d89a9138d1

@ -80,7 +80,7 @@ class ExerciseUserPdfService
exercise_ques_shixun = @exercise_questions.find_by_custom("question_type",5)
@exercise_ques_shixun_count = exercise_ques_shixun.all.count
@exercise_ques_shixun_scores = exercise_ques_shixun.pluck(:question_score).sum
@exercise_questions = @exercise_questions.joins(:exercise_choices,:exercise_shixun_challenges,:exercise_answers,:exercise_shixun_answers,:exercise_answer_comments,:exercise_standard_answers)
# @exercise_questions = @exercise_questions.joins(:exercise_choices,:exercise_shixun_challenges,:exercise_answers,:exercise_shixun_answers,:exercise_answer_comments,:exercise_standard_answers)
# challenge_ids = @exercise_questions.pluck("exercise_shixun_challenges.challenge_id")

Loading…
Cancel
Save