chore: Add comment about StaffingLoader also cloning enrollment data when it clones staffing data

This commit is contained in:
Nelson Jovel 2023-11-09 14:02:18 -08:00
parent 10c052771d
commit 9efc1f41c6
2 changed files with 38 additions and 34 deletions

View file

@ -15,6 +15,7 @@ class StaffingLoader
Respondent.import respondents, batch_size: 1000, on_duplicate_key_update: [:total_teachers]
end
# Clones staffing and enrollment data from previous year
def self.clone_previous_year_data
years = AcademicYear.order(:range).last(2)
previous_year = years.first
@ -66,3 +67,4 @@ class StaffingRowValues
row['FTE Count']
end
end