From 0c7dde77945ff9c161ef4873b316514509a6ad88 Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Sat, 24 Feb 2018 12:13:44 -0500 Subject: [PATCH] min -2 on zscores --- lib/tasks/data.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index 6d5fa420..cd4a1118 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -283,14 +283,14 @@ namespace :data do else school_category.update( nonlikert: row["NL_Value"], - zscore: [row["Z-Score"].to_f,2].min + zscore: [-2,[row["Z-Score"].to_f,2].min].max ) end end ENV.delete('BULK_PROCESS') - sync_school_category_aggregates + # sync_school_category_aggregates end desc 'Load in custom zones for each category'