Commit 482f8e67 by Kevin Chugh

fix orphan calc

parent 37680f50
......@@ -142,7 +142,7 @@ namespace :kpis do
threads = Content.where({"course_id" => c, "_type" => "CommentThread"})
orphans = Content.where({"course_id" => c, "_type" => "CommentThread", "comment_count" => 0})
ratio = orphans.count.to_f / threads.to_f
ratio = orphans.count.to_f / threads.count.to_f
puts c
puts "*********************"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment