观看时长去除小数

courseware
daiao 5 years ago
parent 56a73c637b
commit 476f095256

@ -17,7 +17,7 @@ wb.styles do |s|
get_attachment_count(course, 0), get_attachment_count(course, 0),
course.informs.size, course.informs.size,
course.course_videos.size, course.course_videos.size,
course.course_videos.map{|cv| cv.watch_course_videos.map(&:total_duration).sum }.sum, course.course_videos.map{|cv| cv.watch_course_videos.map(&:total_duration).sum }.sum.round,
course.live_links.size, course.live_links.size,
course.course_homework_count("normal"), course.course_homework_count("normal"),
course.course_homework_count("group"), course.course_homework_count("group"),

Loading…
Cancel
Save