diff --git a/app/controllers/competitions_controller.rb b/app/controllers/competitions_controller.rb index 4cbb8d14..08de34b8 100644 --- a/app/controllers/competitions_controller.rb +++ b/app/controllers/competitions_controller.rb @@ -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) diff --git a/app/views/competitions/_chartList.html.erb b/app/views/competitions/_chartList.html.erb index dcf66550..ee7587e6 100644 --- a/app/views/competitions/_chartList.html.erb +++ b/app/views/competitions/_chartList.html.erb @@ -44,7 +44,7 @@ <% @records.each_with_index do |record, index| %> <% record_user = record.user %>