|
|
@ -112,9 +112,9 @@ class Admins::ShixunSettingsController < Admins::BaseController
|
|
|
|
sheet1[count_row, 2] = shixun.mirror_repositories.select{|mr| mr.main_type == "1"}.first&.type_name
|
|
|
|
sheet1[count_row, 2] = shixun.mirror_repositories.select{|mr| mr.main_type == "1"}.first&.type_name
|
|
|
|
sheet1[count_row, 3] = shixun.fork_from
|
|
|
|
sheet1[count_row, 3] = shixun.fork_from
|
|
|
|
sheet1[count_row, 4] = shixun.shixun_status
|
|
|
|
sheet1[count_row, 4] = shixun.shixun_status
|
|
|
|
sheet1[count_row, 5] = shixun.user.show_real_name
|
|
|
|
sheet1[count_row, 5] = shixun.user&.show_real_name
|
|
|
|
sheet1[count_row, 6] = shixun.user.school_name
|
|
|
|
sheet1[count_row, 6] = shixun.user&.school_name
|
|
|
|
sheet1[count_row, 7] = shixun.user.identity
|
|
|
|
sheet1[count_row, 7] = shixun.user&.identity
|
|
|
|
challenge_count = shixun.challenges.count
|
|
|
|
challenge_count = shixun.challenges.count
|
|
|
|
shixun.challenges.each_with_index do |challenge, index|
|
|
|
|
shixun.challenges.each_with_index do |challenge, index|
|
|
|
|
sheet1[count_row, 8] = "第#{challenge.position}关"
|
|
|
|
sheet1[count_row, 8] = "第#{challenge.position}关"
|
|
|
|