班级内作业课件测验等增加排序
This commit is contained in:
parent
b8c8b2c4ae
commit
4be95cd9c5
|
@ -393,7 +393,7 @@ module Mobile
|
|||
authenticate!
|
||||
|
||||
course = Course.find(params[:course_id])
|
||||
exercises = course.exercises.where("exercise_status <> 1")
|
||||
exercises = course.exercises.where("exercise_status <> 1").order("created_at desc")
|
||||
present :data,exercises,with:Mobile::Entities::Exercise
|
||||
present :status,0
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue