video_log
cxt 5 years ago
parent 81f27188a4
commit 630d74dfc8

@ -17,5 +17,5 @@ json.history_attendances @history_attendances.each_with_index.to_a do |attendanc
end end
json.all_history_count @all_history_count json.all_history_count @all_history_count
json.avg_normal_rate all_normal_rate.sum / @all_history_count json.avg_normal_rate @all_history_count == 0 ? 0 : all_normal_rate.sum / @all_history_count
json.avg_absence_rate all_absence_rate.sum / @all_history_count json.avg_absence_rate @all_history_count == 0 ? 0 : all_absence_rate.sum / @all_history_count

Loading…
Cancel
Save