fixing bug with nonlikert data

pull/1/head
Jared Cosulich 7 years ago
parent 075e0afe33
commit 5f89245ca0

@ -378,14 +378,15 @@ namespace :data do
school_category.update( school_category.update(
nonlikert: row["NL_Value"], nonlikert: row["NL_Value"],
zscore: [-2,[row["Likert_Value"].to_f-3,2].min].max, zscore: [-2,[row["Likert_Value"].to_f-3,2].min].max,
year: "2018" year: "2018",
valid_child_count: 1
) )
end end
end end
ENV.delete('BULK_PROCESS') ENV.delete('BULK_PROCESS')
sync_school_category_aggregates # sync_school_category_aggregates
end end
desc 'Load in custom zones for each category' desc 'Load in custom zones for each category'

Loading…
Cancel
Save