Merge branches 'dev_aliyun' and 'develop' of https://bdgit.educoder.net/Hjqreturn/educoder into develop
commit
87e80fe751
@ -1,15 +1,16 @@
|
|||||||
# json.member_attendances @member_attendances.each do |member|
|
json.member_attendances @member_attendances.each_with_index.to_a do |member, index|
|
||||||
# json.(member, :user_id, :attendance_status)
|
json.(member, :user_id, :attendance_status)
|
||||||
# json.user_name member.user&.real_name
|
|
||||||
# json.student_id member.user&.student_id
|
|
||||||
# end
|
|
||||||
|
|
||||||
json.member_attendances @members.each_with_index.to_a do |member, index|
|
|
||||||
json.(member, :user_id)
|
|
||||||
json.index (@page.to_i - 1) * @limit.to_i + index + 1
|
json.index (@page.to_i - 1) * @limit.to_i + index + 1
|
||||||
json.user_name member.user&.real_name
|
json.user_name member.user&.real_name
|
||||||
json.student_id member.user&.student_id
|
json.student_id member.user&.student_id
|
||||||
json.attendance_status @member_attendances.select{|attendance| attendance.course_member_id == member.id}.first&.attendance_status || "ABSENCE"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# json.member_attendances @members.each_with_index.to_a do |member, index|
|
||||||
|
# json.(member, :user_id)
|
||||||
|
# json.index (@page.to_i - 1) * @limit.to_i + index + 1
|
||||||
|
# json.user_name member.user&.real_name
|
||||||
|
# json.student_id member.user&.student_id
|
||||||
|
# json.attendance_status @member_attendances.select{|attendance| attendance.course_member_id == member.id}.first&.attendance_status || "ABSENCE"
|
||||||
|
# end
|
||||||
|
|
||||||
json.members_count @members_count
|
json.members_count @members_count
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddDurationToVideo < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :videos, :duration, :float, default: 0
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue