@ -136,7 +136,7 @@ class Competitions::CompetitionTeamsController < Competitions::BaseController
def tech_mode
# render_not_found if current_competition.mode != 3
@team = current_competition.competition_teams.find_by(id: params[:id])
@team = current_competition.competition_teams.find_by!(id: params[:id])
end
def get_valid_myshixun_count(ids)
@ -66,7 +66,7 @@ class Competition < ApplicationRecord
# 是否为个人赛
def personal?
competition_staffs.maximum(:maximum) == 1 || (competition_staffs.nil? && max_num == 1)
competition_staffs.sum(:maximum).to_i == 1 || (competition_staffs.nil? && max_num == 1)
# 报名是否结束