|
|
|
@ -94,7 +94,7 @@ namespace :tfxy do
|
|
|
|
|
2.upto(course_data_last_row) do |r|
|
|
|
|
|
course_group = CourseGroup.find_or_initialize_by(invite_code: course_data.cell(r, 3))
|
|
|
|
|
|
|
|
|
|
teach_user = OpenUsers::Cas.find_by(uid: course_data.cell(r, 5))&.user
|
|
|
|
|
teach_user = OpenUsers::Cas.find_by(uid: course_data.cell(r, 4))&.user
|
|
|
|
|
|
|
|
|
|
if !course_group.persisted?
|
|
|
|
|
course = Course.find_or_initialize_by(school_id: school.id, name: course_data.cell(r, 2)) do |d|
|
|
|
|
|