project_pack
cxt 6 years ago
parent a496de41ee
commit 4b4a0d52e6

@ -87,8 +87,8 @@ class StudentWorkController < ApplicationController
# 当前用户评测最大次数
@user_evaluate_count = 0
if myshixun.user_id == @work.user.id
@user_evaluate_count = @myshixun.games.sum(:evaluate_count).to_i
if @myshixun.user_id == @work.user.id
@user_evaluate_count = @myshixun.games.pluck(:evaluate_count).sum.to_i
end
unless params[:pdf]

Loading…
Cancel
Save