Skip to content
Snippets Groups Projects
Commit 09fa24de authored by Kapil Patel's avatar Kapil Patel
Browse files

Fixed some bug

parent 0a060fbf
No related branches found
No related tags found
3 merge requests!115Tombstone not available for dataset,!930.3 release,!78Fix importer issues
Pipeline #5831 failed
......@@ -535,7 +535,7 @@ class PrepareCsvFromCrcFolder
def create_file_sets_for_work(folder_path, csv, meta_info)
Dir.glob("#{folder_path}/*").reject { |item| Pathname(item).directory? || item.include?('MetaApp2_SFB1280.exe') || item.include?('meta.json') }.each_with_index do |file_path, index|
for_complex_type = meta_info['crc_work_type'] == 'experiment' ? "CrcDataset" : meta_info['crc_work_type']
for_complex_type = meta_info[:crc_work_type] == 'experiment' ? "CrcDataset" : meta_info[:crc_work_type]
csv << ['FileSet', '', '', file_path, SecureRandom.uuid, meta_info[:parent_work_source_identifier] || meta_info[:source_identifier], meta_info[:source_identifier], for_complex_type, file_path.split('/')[-1]]
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment