|
|
|
@ -6,6 +6,7 @@ json.user_ranks @user_ranks.each do |user_rank|
|
|
|
|
|
json.user_name user_rank.user.real_name
|
|
|
|
|
json.cost_time rank == 0 && user_rank.cost_time ? "--" : com_spend_time(user_rank.cost_time)
|
|
|
|
|
json.score rank == 0 ? "--" : user_rank.score.round(2)
|
|
|
|
|
json.competition_prize user_rank.competition_prize
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
json.teams @records.each do |record|
|
|
|
|
@ -18,4 +19,5 @@ json.teams @records.each do |record|
|
|
|
|
|
json.school_name school_name
|
|
|
|
|
json.score record&.score&.round(2)
|
|
|
|
|
json.spend_time record.cost_time ? com_spend_time(record.cost_time) : "--"
|
|
|
|
|
json.competition_prize record.competition_prize
|
|
|
|
|
end
|