project_pack
cxt 5 years ago
parent 85de5b6c12
commit a496de41ee

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

Loading…
Cancel
Save