From 5b110f98bb2da1438ea904450baae0875eb7518b Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Thu, 5 Mar 2020 12:05:37 +0800 Subject: [PATCH] fix bugs(first zero in school code disapeared) in version 1 --- app/views/admin/olympiamanagements/_student_export.xlsx.axlsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/olympiamanagements/_student_export.xlsx.axlsx b/app/views/admin/olympiamanagements/_student_export.xlsx.axlsx index 41141b7..0881ed5 100644 --- a/app/views/admin/olympiamanagements/_student_export.xlsx.axlsx +++ b/app/views/admin/olympiamanagements/_student_export.xlsx.axlsx @@ -10,6 +10,6 @@ wb.add_worksheet(name: "school_class") do |sheet| end sheet.add_row row , :style=> title,:widths => row.map{|cell| (cell.length* 11/ 2).round} @student_data_list.each do |infos_row| - sheet.add_row infos_row , :style=> column + sheet.add_row infos_row , :style=> column , :types => :string end end \ No newline at end of file