parent
1e8180d760
commit
82b0f0f0f5
@ -1,17 +0,0 @@
|
||||
json.course_id @course.id
|
||||
json.course_name @course.name
|
||||
json.homework_common_id @homework.id
|
||||
json.homework_common_name @homework.name
|
||||
json.work_name @student_work.name
|
||||
json.username @user.full_name
|
||||
json.user_id @user.id
|
||||
json.user_login @user.login
|
||||
|
||||
json.work_score @student_work.work_score
|
||||
if @student_work.ultimate_score
|
||||
json.adjust_score @student_work.work_score < 0 ? 0 : number_with_precision(@student_work.work_score, precision: 1)
|
||||
else
|
||||
json.final_score @student_work.final_score
|
||||
json.late_penalty @student_work.late_penalty
|
||||
json.score @student_work.work_score < 0 ? 0 : number_with_precision(@student_work.work_score, precision: 1)
|
||||
end
|
Loading…
Reference in new issue