Remove duplicate line

mciea-main
rebuilt 3 years ago
parent 5f58a5516e
commit 098110433a

@ -186,8 +186,6 @@ namespace :one_off do
teacher_response_count = SurveyItemResponse.joins(school: :district).joins(:survey_item).where(academic_year:, teacher_response_count = SurveyItemResponse.joins(school: :district).joins(:survey_item).where(academic_year:,
survey_item: SurveyItem.where('survey_item_id like ? ', 't-%'), "schools.district": district).count survey_item: SurveyItem.where('survey_item_id like ? ', 't-%'), "schools.district": district).count
puts "#{district.name} has #{num_of_respondents} respondents" puts "#{district.name} has #{num_of_respondents} respondents"
puts "#{district.name} has #{num_of_respondents} respondents"
puts "#{district.name} has #{teacher_respondents} teacher respondents" puts "#{district.name} has #{teacher_respondents} teacher respondents"
puts "#{district.name} has #{student_respondents} student respondents" puts "#{district.name} has #{student_respondents} student respondents"
puts "#{district.name} has #{response_count} responses" puts "#{district.name} has #{response_count} responses"

Loading…
Cancel
Save