|
|
|
@ -5,7 +5,6 @@ namespace :excellent_course_exercise do
|
|
|
|
|
task :student_answer => :environment do
|
|
|
|
|
|
|
|
|
|
course = Course.find_by(id: 2933)
|
|
|
|
|
exercises = course.exercises
|
|
|
|
|
|
|
|
|
|
participant_count = 1042
|
|
|
|
|
pass_count = 823
|
|
|
|
@ -14,6 +13,13 @@ namespace :excellent_course_exercise do
|
|
|
|
|
members_2 = course.students.order("id asc").limit(1042)
|
|
|
|
|
members_1 = course.students.order("id asc").limit(322)
|
|
|
|
|
|
|
|
|
|
exercise_1884 = course.exercises.find_by(id: 1884)
|
|
|
|
|
members_1.each_with_index do |member, index|
|
|
|
|
|
if index < 821
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|