|
|
|
@ -17,9 +17,9 @@ else
|
|
|
|
|
json.score @student_work.work_score < 0 ? 0 : number_with_precision(@student_work.work_score, precision: 1)
|
|
|
|
|
if @homework.work_efficiency
|
|
|
|
|
json.eff_score_full number_with_precision @homework.eff_score, precision: 1
|
|
|
|
|
json.eff_score number_with_precision @work.eff_score, precision: 1
|
|
|
|
|
json.eff_score number_with_precision @student_work.eff_score, precision: 1
|
|
|
|
|
json.challenge_score_full number_with_precision (100 - @homework.eff_score), precision: 1
|
|
|
|
|
json.challenge_score number_with_precision @work.final_score, precision: 1
|
|
|
|
|
json.challenge_score number_with_precision @student_work.final_score, precision: 1
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|