app/controllers/manage/dashboard_controller.rb in hackathon_manager-0.12.2 vs app/controllers/manage/dashboard_controller.rb in hackathon_manager-0.13.0
- old
+ new
@@ -30,10 +30,10 @@
def user_distribution_data
total_stats_data = {}
total_count = Questionnaire.count
rit_count = Questionnaire.where("school_id = \"2304\"").count
- total_stats_data["Non-Applied Users"] = User.where(admin: false).count - total_count
+ total_stats_data["Non-Applied Users"] = User.without_questionnaire.count
total_stats_data["Non-RIT Applications"] = total_count - rit_count
total_stats_data["RIT Applications"] = rit_count
render json: total_stats_data
end