导出成绩调整

dev_home
cxt 5 years ago
parent 621b93ecb6
commit bfd60ba971

@ -127,7 +127,7 @@ class Competitions::CompetitionsController < Competitions::BaseController
.select("competition_teams.*, score, cost_time").order("score desc, cost_time desc")
current_team_ids = @competition.team_members.where(user_id: current_user.id).pluck(:competition_team_id).uniq
@user_ranks = @records.select{|com_team| current_team_ids.include?(com_team.id)}
@user_ranks = @all_records.select{|com_team| current_team_ids.include?(com_team.id)}
@records = @all_records.where("score > 0")
@record_ids = @records.pluck(:id)
if params[:format] == "xlsx"

Loading…
Cancel
Save