Skip to content

Commit 8618d7e

Browse files
authored
Allowing multiple data users (#1042)
1 parent c20f70c commit 8618d7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tasks/import.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require 'csv'
2323
# set quota [xvalue asset/collection/quota/allocation $asset]
2424
# puts $id "," $path "," $creatorDomain "," $creatorUser "," $createdOn "," \
2525
# $quota "," $store "," $projectDirectory "," \"$title\" "," \"$description\" "," \
26-
# $dataSponsor "," $dataManager "," $dataUser "," $department "," $projectID
26+
# $dataSponsor "," $dataManager ",\"" $dataUser "\"," $department "," $projectID
2727
# }
2828
#
2929
#
@@ -45,7 +45,7 @@ namespace :import do
4545
data_user = if project_metadata["dataUser"].blank?
4646
[]
4747
else
48-
[project_metadata["dataUser"]]
48+
project_metadata["dataUser"].split(",").map(&:strip)
4949
end
5050
storage_size_gb = project_metadata["quota"].to_i/1000000000.0
5151
metadata = ProjectMetadata.new_from_hash({

0 commit comments

Comments
 (0)