|
|
|
@ -69,6 +69,7 @@ class Attempt < ApplicationRecord
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def update_school_categories
|
|
|
|
def update_school_categories
|
|
|
|
|
|
|
|
return if ENV['BULK_PROCESS']
|
|
|
|
school_category = SchoolCategory.for(recipient.school, question.category).first
|
|
|
|
school_category = SchoolCategory.for(recipient.school, question.category).first
|
|
|
|
if school_category.nil?
|
|
|
|
if school_category.nil?
|
|
|
|
school_category = SchoolCategory.create(school: recipient.school, category: question.category)
|
|
|
|
school_category = SchoolCategory.create(school: recipient.school, category: question.category)
|
|
|
|
|