去掉已经过时的代码

This commit is contained in:
lizanle 2015-07-09 14:57:27 +08:00
parent 8d7faaced6
commit 49b1b11d7b
1 changed files with 4 additions and 4 deletions

View File

@ -556,9 +556,9 @@ class CoursesService
# bid.student_works.order("created_at desc").page(1).per(6).each do |work|
# studentlist << work.user
# end
unless is_course_teacher
homework_for_anonymous_comments = get_student_batch_homework_list bid,current_user
end
# unless is_course_teacher
# homework_for_anonymous_comments = get_student_batch_homework_list bid,current_user
# end
#end
open_anonymous_evaluation = bid.homework_detail_manual.comment_status
{:course_name => course.name,:course_id => course.id,:id => bid.id,
@ -567,7 +567,7 @@ class CoursesService
:homework_count => homework_count,:student_questions_count => 0,
:description => description, :homework_state => state,
:open_anonymous_evaluation => open_anonymous_evaluation,
:homework_for_anonymous_comments => homework_for_anonymous_comments,
#:homework_for_anonymous_comments => homework_for_anonymous_comments,
:created_on => bid.created_at,:deadline => bid.end_time,
:homework_notsubmit_num => bid.course.members.count - bid.student_works.count,
:homework_submit_num => bid.student_works.count,