This commit is contained in:
cxt 2017-09-12 17:37:53 +08:00
parent e87bc406a6
commit 0a774e793f
1 changed files with 1 additions and 1 deletions

View File

@ -4741,7 +4741,7 @@ end
def get_hw_index(hw,is_teacher,type=0)
homework_commons = hw.course.homework_commons
Rails.logger.info("----------------------------------------------"+hw.course)
Rails.logger.info("----------------------------------------------"+hw.course.to_s)
if is_teacher
if type != 0
homeworks = homework_commons.where("homework_commons.homework_type = #{type}").order("created_at asc")