courseware
anke1460 5 years ago
parent c488619eae
commit f4aaa29952

@ -133,7 +133,7 @@ class CoursesController < ApplicationController
@count = course_videos.count("course_videos.id")
logger.info("#######count:#{@count}")
course_videos = course_videos.select("course_videos.id, IFNULL(watch_courses.total_duration, 0) AS total_duration, IFNULL(watch_courses.count,0) AS count, course_videos.video_id, course_videos.title, course_videos.is_link, course_videos.user_id")
course_videos = course_videos.select("course_videos.id, IFNULL(watch_courses.total_duration, 0) AS total_duration, IFNULL(watch_courses.count,0) AS count, course_videos.video_id, course_videos.title, course_videos.link, course_videos.is_link, course_videos.user_id")
@videos = paginate course_videos
end

Loading…
Cancel
Save