mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
chore: fixed seeder.
This commit is contained in:
parent
0af7d42e52
commit
1b0af124f7
4 changed files with 17 additions and 33 deletions
|
|
@ -110,14 +110,14 @@ module Dashboard
|
|||
EnrollmentLoader.new.clone_previous_year_data if missing_enrollment_for_current_year
|
||||
end
|
||||
|
||||
# def seed_staffing(csv_file)
|
||||
# StaffingLoader.load_data(filepath: csv_file)
|
||||
# missing_staffing_for_current_year = Respondent.where(academic_year: AcademicYear.order(:range).last).none? do |respondent|
|
||||
# respondent&.total_teachers&.zero?
|
||||
# end
|
||||
def seed_staffing(csv_file)
|
||||
StaffingLoader.load_data(filepath: csv_file)
|
||||
missing_staffing_for_current_year = Respondent.where(academic_year: AcademicYear.order(:range).last).none? do |respondent|
|
||||
respondent&.total_teachers&.zero?
|
||||
end
|
||||
|
||||
# StaffingLoader.clone_previous_year_data if missing_staffing_for_current_year
|
||||
# end
|
||||
StaffingLoader.clone_previous_year_data if missing_staffing_for_current_year
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue