|
|
@ -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
|