|
|
|
@ -113,6 +113,8 @@ class Competitions::CompetitionsController < Competitions::BaseController
|
|
|
|
|
@competition = current_competition
|
|
|
|
|
if params[:stage_id]
|
|
|
|
|
@stage = @competition.competition_stages.find_by(id: params[:stage_id])
|
|
|
|
|
elsif @competition.competition_stages.count == 1
|
|
|
|
|
@stage = @competition.competition_stages.take
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@records = @competition.competition_teams.joins(:competition_scores).where(competition_scores: {competition_stage_id: @stage&.id.to_i})
|
|
|
|
|