左侧导航栏的视频数调整

courseware
cxt 5 years ago
parent 20b1e6439d
commit 42a9138143

@ -162,7 +162,7 @@ class Course < ApplicationRecord
def videos_count
course_videos.where(video_id: videos.where("transcoded = 1 or videos.user_id = #{User.current.id}").pluck(:id))
.or(course_videos.where(course_videos: {is_link: true}))
.or(course_videos.where(course_videos: {is_link: true})).size
end
def teacher_group(user_id)

Loading…
Cancel
Save