mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 20:23:16 +08:00
Merge branch 'features/inventory-import-improvements' into develop
This commit is contained in:
commit
6ac1c6a13b
2 changed files with 2 additions and 5 deletions
|
@ -22,7 +22,7 @@ class RepositoryChecklistValue < ApplicationRecord
|
|||
EXTRA_PRELOAD_INCLUDE = :repository_checklist_items
|
||||
|
||||
def formatted(separator: ' | ')
|
||||
repository_checklist_items.pluck(:data).join(separator).gsub("\n", "\\n")
|
||||
repository_checklist_items.pluck(:data).join(separator)
|
||||
end
|
||||
|
||||
def export_formatted
|
||||
|
|
|
@ -44,10 +44,7 @@ class SpreadsheetParser
|
|||
if row && i.zero?
|
||||
header = row
|
||||
else
|
||||
escaped_row = row.map do |cell|
|
||||
cell.to_s.gsub("\\n", "\n")
|
||||
end
|
||||
columns = escaped_row
|
||||
columns = row
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue