|
|
|
@ -31,7 +31,7 @@ elsif @user_course_identity == Course::STUDENT
|
|
|
|
|
json.left_time left_time @homework, @current_user.id
|
|
|
|
|
|
|
|
|
|
if @homework.homework_type == "practice"
|
|
|
|
|
json.(@work, :id, :work_status, :update_time, :ultimate_score)
|
|
|
|
|
json.(@work, :id, :work_status, :update_time, :ultimate_score, :myshixun_id)
|
|
|
|
|
json.calculation_time @work.calculation_time
|
|
|
|
|
json.late_penalty @work.late_penalty if @homework.allow_late
|
|
|
|
|
json.cost_time @work.myshixun.try(:total_spend_time)
|
|
|
|
@ -40,7 +40,7 @@ elsif @user_course_identity == Course::STUDENT
|
|
|
|
|
json.efficiency work_score_format(@work.efficiency, true, @score_open)
|
|
|
|
|
json.eff_score work_score_format(@work.eff_score, true, @score_open)
|
|
|
|
|
json.complete_count @work.myshixun.try(:passed_count)
|
|
|
|
|
# json.redo_work student_redo_work(@work)
|
|
|
|
|
json.redo_work @homework.end_or_late ? false : student_redo_work(@work, @homework)
|
|
|
|
|
else
|
|
|
|
|
json.(@work, :id, :work_status, :update_time, :ultimate_score)
|
|
|
|
|
|
|
|
|
|