试卷的更新标准答案的测试

dev_hs
SylorHuang 5 years ago
parent 71f56568be
commit 1e45b8ee0a

@ -361,6 +361,7 @@ class ExerciseQuestionsController < ApplicationController
if ex_users_committed.size > 0 if ex_users_committed.size > 0
ex_users_committed.each do |ex_user| ex_users_committed.each do |ex_user|
update_objective_score = update_single_score(@exercise_question,ex_user.user_id,standard_answer) update_objective_score = update_single_score(@exercise_question,ex_user.user_id,standard_answer)
Rails.logger.info("#####_________update_objective_score___________##############{update_objective_score}")
if update_objective_score != 0 if update_objective_score != 0
objective_score = ex_user.objective_score objective_score = ex_user.objective_score
subjective_score = ex_user.subjective_score subjective_score = ex_user.subjective_score

Loading…
Cancel
Save