From 5f89245ca0bf05ef653434cdd2c5b3068bf0a5b9 Mon Sep 17 00:00:00 2001 From: Jared Cosulich Date: Mon, 14 Jan 2019 13:17:38 -0500 Subject: [PATCH] fixing bug with nonlikert data --- lib/tasks/data.rake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index 254aa9b5..7c7aec51 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -378,14 +378,15 @@ namespace :data do school_category.update( nonlikert: row["NL_Value"], zscore: [-2,[row["Likert_Value"].to_f-3,2].min].max, - year: "2018" + year: "2018", + valid_child_count: 1 ) end end ENV.delete('BULK_PROCESS') - sync_school_category_aggregates + # sync_school_category_aggregates end desc 'Load in custom zones for each category'