From 69b9cb54c7f5d5b683d1bbf9bb9b05372e2c2900 Mon Sep 17 00:00:00 2001 From: viehlieb Date: Sun, 26 Feb 2023 13:46:49 +0100 Subject: [PATCH] draw filename frompth --- lib/foodsoft_article_import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foodsoft_article_import.rb b/lib/foodsoft_article_import.rb index 22de3ee..7592b26 100644 --- a/lib/foodsoft_article_import.rb +++ b/lib/foodsoft_article_import.rb @@ -70,7 +70,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(filename) if filename + opts[:extension] = File.extname.File.basename(filename) if filename begin Roo::Spreadsheet.open(file, **opts) rescue StandardError => e