mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 08:21:37 +08:00
Merge pull request #2173 from biosistemika/release_1_17_4
Merge release 1.17.4 to master
This commit is contained in:
commit
e333e7c44a
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
1.17.3
|
1.17.4
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class SpreadsheetParser
|
||||||
if sheet.is_a?(Roo::CSV)
|
if sheet.is_a?(Roo::CSV)
|
||||||
sheet
|
sheet
|
||||||
elsif sheet.is_a?(Roo::Excelx)
|
elsif sheet.is_a?(Roo::Excelx)
|
||||||
sheet.each_row_streaming
|
sheet.each_row_streaming(pad_cells: true)
|
||||||
else
|
else
|
||||||
sheet.rows
|
sheet.rows
|
||||||
end
|
end
|
||||||
|
|
@ -60,7 +60,7 @@ class SpreadsheetParser
|
||||||
if row.is_a?(Hash)
|
if row.is_a?(Hash)
|
||||||
row.values.map(&:to_s)
|
row.values.map(&:to_s)
|
||||||
elsif sheet.is_a?(Roo::Excelx)
|
elsif sheet.is_a?(Roo::Excelx)
|
||||||
row.map { |cell| cell.value.to_s }
|
row.map { |cell| cell&.value&.to_s }
|
||||||
else
|
else
|
||||||
row.map(&:to_s)
|
row.map(&:to_s)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue