dev_course
SylorHuang 6 years ago
parent 7135094316
commit 2420ce6a1b

@ -84,8 +84,6 @@ class ExercisePublishTask
end end
total_score_subjective_score = subjective_score < 0.0 ? 0.0 : subjective_score total_score_subjective_score = subjective_score < 0.0 ? 0.0 : subjective_score
total_score = s_score + total_score_subjective_score total_score = s_score + total_score_subjective_score
Rails.logger.info("log-------------total_score-------------------total_scoretotal_scoretotal_scoretotal_score#{total_score}")
commit_option = { commit_option = {
:status => 1, :status => 1,
:commit_status => 1, :commit_status => 1,

@ -1,5 +1,6 @@
json.question_id question.id json.question_id question.id
json.question_number question.question_number # json.question_number question.question_number
json.q_position question.question_number
json.question_title question.question_title json.question_title question.question_title
json.question_type question.question_type json.question_type question.question_type
json.question_score question.question_score.round(1).to_s json.question_score question.question_score.round(1).to_s

Loading…
Cancel
Save