|
|
@ -43,7 +43,8 @@ elsif @user_course_identity == Course::STUDENT
|
|
|
|
json.efficiency work_score_format(@work.efficiency, true, @score_open)
|
|
|
|
json.efficiency work_score_format(@work.efficiency, true, @score_open)
|
|
|
|
json.eff_score work_score_format(@work.eff_score, true, @score_open)
|
|
|
|
json.eff_score work_score_format(@work.eff_score, true, @score_open)
|
|
|
|
json.current_complete_count myshixun.try(:passed_count) if @homework.end_or_late
|
|
|
|
json.current_complete_count myshixun.try(:passed_count) if @homework.end_or_late
|
|
|
|
json.complete_count @work.myshixun&.time_passed_count(@homework.homework_group_setting(@work.user_id)&.end_time)
|
|
|
|
end_time = @homework.allow_late ? @homework.late_time : @homework.homework_group_setting(@work.user_id)&.end_time
|
|
|
|
|
|
|
|
json.complete_count @work.myshixun&.time_passed_count(end_time)
|
|
|
|
json.view_answer_count @work.myshixun.try(:view_answer_count).to_i
|
|
|
|
json.view_answer_count @work.myshixun.try(:view_answer_count).to_i
|
|
|
|
json.work_status @work.compelete_status
|
|
|
|
json.work_status @work.compelete_status
|
|
|
|
else
|
|
|
|
else
|
|
|
|