capping zscores at 2

This commit is contained in:
Jared Cosulich 2018-01-28 22:06:35 -05:00
parent adc2c1318a
commit 9d45ba405b
3 changed files with 8 additions and 10 deletions

View file

@ -282,7 +282,7 @@ namespace :data do
school_category = school.school_categories.find_or_create_by(category: nonlikert_category)
school_category.update(
nonlikert: row["NL_Value"],
zscore: row["Z-Score"]
zscore: [row["Z-Score"].to_f,2].min
)
school_category_id = school_category.id
end