mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: add a way to print out errors in dese id when cleaning files
This commit is contained in:
parent
42fdf4a074
commit
c2c8ce3b8d
1 changed files with 4 additions and 1 deletions
|
|
@ -78,7 +78,10 @@ class Cleaner
|
|||
CSV.parse(lines.join, headers:).map do |row|
|
||||
values = SurveyItemValues.new(row:, headers:,
|
||||
survey_items: all_survey_items, schools:, academic_years:)
|
||||
next unless values.valid_school?
|
||||
unless values.valid_school?
|
||||
# puts "row #{values.response_id}: dese id :#{values.dese_id} : could not find school, skipping row for file #{file.path}"
|
||||
next
|
||||
end
|
||||
|
||||
data << values
|
||||
values.valid? ? clean_csv << values.to_a : log_csv << (values.to_a << values.valid_duration?.to_s << values.valid_progress?.to_s << values.valid_grade?.to_s << values.valid_sd?.to_s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue