add update_category as option

This commit is contained in:
viehlieb 2023-03-29 16:16:54 +02:00 committed by Philipp Rothmann
parent 14540d4cf9
commit 7fb9153209
5 changed files with 54 additions and 4 deletions

View file

@ -66,7 +66,7 @@ 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(file)) if file
begin
Roo::Spreadsheet.open(file, **opts)
rescue StandardError => e