mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-17 17:56:26 -07:00
chore: make sure CSV and File objects are properly namespaced
This commit is contained in:
parent
a99ed183a1
commit
ed1310f93c
34 changed files with 327 additions and 27 deletions
|
|
@ -7,7 +7,7 @@ module Dashboard
|
|||
def self.load_data(filepath:)
|
||||
schools = []
|
||||
respondents = []
|
||||
CSV.parse(File.read(filepath), headers: true) do |row|
|
||||
::CSV.parse(::File.read(filepath), headers: true) do |row|
|
||||
row = StaffingRowValues.new(row:)
|
||||
next unless row.school.present? && row.academic_year.present?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue