|
|
|
@ -776,7 +776,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
name = attachment.disk_filename
|
|
|
|
|
if name.split(".").last == "xls"
|
|
|
|
|
begin
|
|
|
|
|
attachment_folder = Rails.configuration.educoder['attachment_folder']
|
|
|
|
|
attachment_folder = edu_setting('attachment_folder')
|
|
|
|
|
full_path = "#{attachment_folder}/#{path}/#{name}"
|
|
|
|
|
xls = Roo::Spreadsheet.open(full_path, extension: :xls)
|
|
|
|
|
worksheet = xls.sheet(0)
|
|
|
|
|