|
|
@ -16,7 +16,8 @@ class HomeworkEndUpdateScoreJob < ApplicationJob
|
|
|
|
student_works = homework.student_works.where(user_id: user_ids)
|
|
|
|
student_works = homework.student_works.where(user_id: user_ids)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
myshixuns = Myshixun.where(shixun_id: params[:shixun_id], user_id: user_ids).
|
|
|
|
shixun_id = homework.homework_commons_shixun.try(:shixun_id)
|
|
|
|
|
|
|
|
myshixuns = Myshixun.where(shixun_id: shixun_id, user_id: user_ids).
|
|
|
|
includes(:games).where(games: {challenge_id: homework.homework_challenge_settings.pluck(:challenge_id)})
|
|
|
|
includes(:games).where(games: {challenge_id: homework.homework_challenge_settings.pluck(:challenge_id)})
|
|
|
|
challenge_settings = homework.homework_challenge_settings
|
|
|
|
challenge_settings = homework.homework_challenge_settings
|
|
|
|
myshixuns.find_each(batch_size: 100) do |myshixun|
|
|
|
|
myshixuns.find_each(batch_size: 100) do |myshixun|
|
|
|
|