From 2aea4da3103cfc0d13021ddac4e31710c584759f Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 8 Jan 2016 10:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E7=9A=84=E6=B5=8B=E9=AA=8C?= =?UTF-8?q?=E6=88=90=E7=BB=A9=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E2=80=9D?= =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/exercise_controller.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb index 1bc160592..b1e5456c5 100644 --- a/app/controllers/exercise_controller.rb +++ b/app/controllers/exercise_controller.rb @@ -615,7 +615,7 @@ class ExerciseController < ApplicationController sheet1 = book.create_worksheet :name => "exercise" blue = Spreadsheet::Format.new :color => :blue, :weight => :bold, :size => 10 sheet1.row(0).default_format = blue - sheet1.row(0).concat([l(:excel_user_id),l(:excel_user_name),l(:excel_nickname),l(:excel_student_id),l(:excel_mail),l(:excel_f_score),l(:excel_commit_time)]) + sheet1.row(0).concat([l(:excel_user_id),l(:excel_user_name),l(:excel_nickname),l(:excel_student_id),l(:excel_mail),l(:excel_class),l(:excel_f_score),l(:excel_commit_time)]) count_row = 1 items.each do |exercise| sheet1[count_row,0]=exercise.user.id @@ -623,8 +623,9 @@ class ExerciseController < ApplicationController sheet1[count_row,2] = exercise.user.login sheet1[count_row,3] = exercise.user.user_extensions.student_id sheet1[count_row,4] = exercise.user.mail - sheet1[count_row,5] = exercise.score - sheet1[count_row,6] = format_time(exercise.created_at) + sheet1[count_row,5] = "" + sheet1[count_row,6] = exercise.score + sheet1[count_row,7] = format_time(exercise.created_at) count_row += 1 end book.write xls_report