未发布的作业不应进行作业的积分统计

cxt_course
cxt 9 years ago
parent 2d4f724e33
commit 96accf1e7a

@ -145,7 +145,7 @@ class Member < ActiveRecord::Base
#当前课程的作业列表
def homework_common_list
HomeworkCommon.where(:course_id => self.course_id)
HomeworkCommon.where("course_id = ? and publish_time is not null and publish_time <= '#{Date.today}'", self.course_id)
end
#当前学生在指定作业内的得分

Loading…
Cancel
Save