diff --git a/app/views/questions/_question.html.haml b/app/views/questions/_question.html.haml index e502c5f2..c18a155d 100644 --- a/app/views/questions/_question.html.haml +++ b/app/views/questions/_question.html.haml @@ -31,6 +31,8 @@ %p No data is displayed for this question because of insufficient responses. -#%p= "Responded: #{aggregated_responses.count}, Possible: #{@school.available_responders_for(question)}" %p= "Source: #{question.for_teachers? ? "Teachers" : "Students"}" + %br + %br - if valid_responses .clearfix diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake index 490f151a..ae936a35 100644 --- a/lib/tasks/data.rake +++ b/lib/tasks/data.rake @@ -567,7 +567,8 @@ end # school_category.update( # valid_child_count: school_question_data.valid_child_count, # response_count: school_question_data.response_count, -# answer_index_total: school_question_data.response_total +# answer_index_total: school_question_data.response_total, +# zscore: (school_question_data.response_total.to_f/school_question_data.response_count.to_f) - 3.to_f # ) # end # end @@ -588,7 +589,8 @@ end # school_category.update( # valid_child_count: valid_children.count, # response_count: valid_children.sum(&:response_count), -# answer_index_total: valid_children.sum(&:answer_index_total) +# answer_index_total: valid_children.sum(&:answer_index_total), +# zscore: (valid_children.sum(&:answer_index_total).to_f / valid_children.sum(&:response_count).to_f) - 3.to_f # ) # puts "" # puts ""