|
|
|
@ -42,7 +42,6 @@ class StudentWorkController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
@homework_commons = @course.homework_commons.order("created_at desc")
|
|
|
|
|
@homework_commons = @course.homework_commons.order("created_at desc")
|
|
|
|
|
@score = @b_sort == "desc" ? "asc" : "desc"
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html
|
|
|
|
@ -80,6 +79,11 @@ class StudentWorkController < ApplicationController
|
|
|
|
|
stundet_work.late_penalty = 0
|
|
|
|
|
end
|
|
|
|
|
render_attachment_warning_if_needed(stundet_work)
|
|
|
|
|
|
|
|
|
|
if @homework.homework_type == 2 #编程作业,学生提交作品后计算系统得分
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if stundet_work.save
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html {
|
|
|
|
|