|
|
|
@ -19,7 +19,7 @@ class Weapps::HomesController < Weapps::BaseController
|
|
|
|
|
@courses = @courses.where(id: current_laboratory.all_courses)
|
|
|
|
|
@course_count = @courses.count
|
|
|
|
|
order_str = "course_members.sticky=1 desc, course_members.sticky_time desc, courses.created_at desc"
|
|
|
|
|
@courses = paginate(@courses.order(order_str).includes(:teacher, :school))
|
|
|
|
|
@courses = paginate(@courses.order(order_str).includes(:teacher_users, :teacher, :school))
|
|
|
|
|
@user = current_user
|
|
|
|
|
end
|
|
|
|
|
end
|