|
|
|
@ -35,7 +35,7 @@ class CourseVideosController < ApplicationController
|
|
|
|
|
@watch_course_videos = @watch_course_videos.where("course_members.course_group_id = ?", params[:group_id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@watch_course_videos = @watch_course_videos.select("count(watch_course_videos.course_video_id) AS freq, watch_course_videos.*")
|
|
|
|
|
@watch_course_videos = @watch_course_videos.select("count(watch_course_videos.course_video_id) AS freq, watch_course_videos.id, watch_course_videos.user_id, watch_course_videos.start_at, watch_course_videos.end_at, watch_course_videos.is_finished, watch_course_videos.total_duration")
|
|
|
|
|
|
|
|
|
|
if params[:order].present?
|
|
|
|
|
key = params[:order].split("-")
|
|
|
|
|