This commit is contained in:
parent
e87bc406a6
commit
0a774e793f
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue