计算成绩跳过验证

chromesetting
cxt 5 years ago
parent 481f7503f5
commit 5e43f534b5

@ -346,7 +346,7 @@ class HomeworksService
work.work_score = format("%.2f",(score < 0 ? 0 : score).to_f) unless work.ultimate_score work.work_score = format("%.2f",(score < 0 ? 0 : score).to_f) unless work.ultimate_score
#logger.info("#############work_score: #{score}") #logger.info("#############work_score: #{score}")
work.calculation_time = Time.now work.calculation_time = Time.now
work.save! work.save(validate: false)
end end
end end
end end
Loading…
Cancel
Save