|
|
|
@ -305,7 +305,7 @@ class CompetitionsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
records_length = 97
|
|
|
|
|
@records = @records[0..records_length]
|
|
|
|
|
elsif @competition.identifier == "gcc-annotation-2018"
|
|
|
|
|
elsif @competition.identifier == "gcc-annotation-2018" || @competition.identifier == "gcc-course-2019"
|
|
|
|
|
@records = @competition.competition_teams.includes(:user => [:user_extensions => [:school]])
|
|
|
|
|
@records.each do |team|
|
|
|
|
|
team[:s_score] = team.competition_scores.where(:competition_id => @competition.id).first.try(:score).to_f.try(:round, 3)
|
|
|
|
@ -494,7 +494,7 @@ class CompetitionsController < ApplicationController
|
|
|
|
|
sheet1[count_row,10] = com_spend_time team[:s_spend_time].to_i
|
|
|
|
|
count_row += 1
|
|
|
|
|
end
|
|
|
|
|
elsif @competition.identifier == "gcc-annotation-2018"
|
|
|
|
|
elsif @competition.identifier == "gcc-annotation-2018" || @competition.identifier == "gcc-course-2019"
|
|
|
|
|
records = @competition.competition_teams
|
|
|
|
|
records.each do |team|
|
|
|
|
|
team[:s_score] = team.competition_scores.where(:competition_id => @competition.id).first.try(:score).to_f.try(:round, 3)
|
|
|
|
|