mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-09 22:55:34 +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
|
end
|
||||||
yield if block_given?
|
yield if block_given?
|
||||||
dir = FileUtils.mkdir_p(File.join(dir_name, a.id.to_s)).first
|
dir = FileUtils.mkdir_p(File.join(dir_name, a.id.to_s)).first
|
||||||
if defined?(S3_BUCKET)
|
if ENV['S3_BUCKET']
|
||||||
s3_asset =
|
s3_asset =
|
||||||
S3_BUCKET.object(a.public_send(attachment_name).path.remove(%r{^/}))
|
S3_BUCKET.object(a.public_send(attachment_name).path.remove(%r{^/}))
|
||||||
file_name = a.public_send(attachment_name).original_filename
|
file_name = a.public_send(attachment_name).original_filename
|
||||||
|
|
|
@ -202,6 +202,8 @@ class TeamImporter
|
||||||
@experiment_mappings[orig_id]
|
@experiment_mappings[orig_id]
|
||||||
when 'tsk'
|
when 'tsk'
|
||||||
@my_module_mappings[orig_id]
|
@my_module_mappings[orig_id]
|
||||||
|
when 'rep_item'
|
||||||
|
@repository_row_mappings[orig_id]
|
||||||
end
|
end
|
||||||
next unless new_id
|
next unless new_id
|
||||||
new_id_encoded = new_id.base62_encode
|
new_id_encoded = new_id.base62_encode
|
||||||
|
|
Loading…
Add table
Reference in a new issue