From f4aaa299529ec6026236e3e755f665d4db4825be Mon Sep 17 00:00:00 2001 From: anke1460 Date: Tue, 17 Mar 2020 23:42:02 +0800 Subject: [PATCH] fix --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 628861201..46ac514b4 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -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