diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index 7d22f4b71..0002a49ea 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -434,7 +434,7 @@ class StudentWorksController < ApplicationController # 用户最大评测次数 logger.info("-----------#{@games.map(&:evaluate_count)}") logger.info("-------sum_evaluate_count----#{@games.sum(:evaluate_count)}") - logger.info("-----------#{@games.sum(:evaluate_count).to_sql}") + logger.info("-------sum_evaluate_count----#{@games.sum("games.evaluate_count")}") @user_evaluate_count = @games.sum(:evaluate_count) if @games # 图形效率图的数据 @echart_data = student_efficiency(@homework, @work)