main v3.0
viehlieb 2023-02-27 12:30:53 +01:00
parent 69b9cb54c7
commit 60e43b20b9
1 changed files with 9 additions and 1 deletions

View File

@ -70,7 +70,15 @@ module FoodsoftArticleImport
opts[:csv_options][:encoding] = encoding if encoding
opts[:csv_options][:col_sep] = col_sep if col_sep
opts[:csv_options][:liberal_parsing] = true if liberal_parsing
opts[:extension] = File.extname.File.basename(filename) if filename
opts[:extension] = File.extname(File.basename(filename)) if filename
puts "
" + "______________" + "
" + "______________" + "
" + "______ext________" + "
" + "#{opts[:extension]}" + "
" + "______________"+ "
" + "______________"+ "
" + "______________"
begin
Roo::Spreadsheet.open(file, **opts)
rescue StandardError => e