|
|
|
@ -255,7 +255,7 @@ class SubjectsController < ApplicationController
|
|
|
|
|
CourseSecondCategory.create!(name: stage.name, course_id: @course.id, category_type: "shixun_homework",
|
|
|
|
|
course_module_id: course_module.id, position: course_module.course_second_categories.count + 1)
|
|
|
|
|
|
|
|
|
|
stage.shixuns.where(id: params[:shixun_ids], status: 2).each do |shixun|
|
|
|
|
|
stage.shixuns.no_jupyter.where(id: params[:shixun_ids], status: 2).each do |shixun|
|
|
|
|
|
homework = HomeworksService.new.create_homework shixun, @course, category, current_user
|
|
|
|
|
homework_ids << homework.id
|
|
|
|
|
end
|
|
|
|
|