Skip to content

Commit

Permalink
Allowing multiple data users (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncole authored Nov 11, 2024
1 parent c20f70c commit 8618d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/import.rake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require 'csv'
# set quota [xvalue asset/collection/quota/allocation $asset]
# puts $id "," $path "," $creatorDomain "," $creatorUser "," $createdOn "," \
# $quota "," $store "," $projectDirectory "," \"$title\" "," \"$description\" "," \
# $dataSponsor "," $dataManager "," $dataUser "," $department "," $projectID
# $dataSponsor "," $dataManager ",\"" $dataUser "\"," $department "," $projectID
# }
#
#
Expand All @@ -45,7 +45,7 @@ namespace :import do
data_user = if project_metadata["dataUser"].blank?
[]
else
[project_metadata["dataUser"]]
project_metadata["dataUser"].split(",").map(&:strip)
end
storage_size_gb = project_metadata["quota"].to_i/1000000000.0
metadata = ProjectMetadata.new_from_hash({
Expand Down

0 comments on commit 8618d7e

Please sign in to comment.