dev_forum
cxt 6 years ago
parent ddf679dd36
commit e9db5afd54

@ -200,9 +200,9 @@ class StudentWork < ApplicationRecord
if adjust_score.present? if adjust_score.present?
game_score = adjust_score.score game_score = adjust_score.score
else else
setting = homework.homework_group_setting user_id setting = homework_common.homework_group_setting user_id
if game.status == 2 && ((game.end_time && game.end_time < setting.end_time) || (homework.allow_late && game.end_time && game.end_time < homework.late_time)) if game.status == 2 && ((game.end_time && game.end_time < setting.end_time) || (homework_common.allow_late && game.end_time && game.end_time < homework_common.late_time))
answer_open_evaluation = homework.homework_detail_manual.answer_open_evaluation answer_open_evaluation = homework_common.homework_detail_manual.answer_open_evaluation
game_score = answer_open_evaluation ? score : (game.final_score > 0 ? game.real_score(score) : 0) game_score = answer_open_evaluation ? score : (game.final_score > 0 ? game.real_score(score) : 0)
end end
end end

Loading…
Cancel
Save