mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
adds repository_items to smart annotation import
This commit is contained in:
parent
fbcc788597
commit
d68ae63c40
2 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,7 @@ class TeamExporter
|
|||
end
|
||||
yield if block_given?
|
||||
dir = FileUtils.mkdir_p(File.join(dir_name, a.id.to_s)).first
|
||||
if defined?(S3_BUCKET)
|
||||
if ENV['S3_BUCKET']
|
||||
s3_asset =
|
||||
S3_BUCKET.object(a.public_send(attachment_name).path.remove(%r{^/}))
|
||||
file_name = a.public_send(attachment_name).original_filename
|
||||
|
|
|
@ -202,6 +202,8 @@ class TeamImporter
|
|||
@experiment_mappings[orig_id]
|
||||
when 'tsk'
|
||||
@my_module_mappings[orig_id]
|
||||
when 'rep_item'
|
||||
@repository_row_mappings[orig_id]
|
||||
end
|
||||
next unless new_id
|
||||
new_id_encoded = new_id.base62_encode
|
||||
|
|
Loading…
Add table
Reference in a new issue