# HG changeset patch # User Catherine Wise # Date 1432182063 -36000 # Node ID 3ff3e9b8794f14ed1622aa7740fe7f8213d25b5e # Parent a9127799070f4ab9e2a1a498949a4f095d487671 Fix output json format. diff -r a9127799070f -r 3ff3e9b8794f TrustStoreGalaxyBrowse.py --- a/TrustStoreGalaxyBrowse.py Thu May 21 12:56:14 2015 +1000 +++ b/TrustStoreGalaxyBrowse.py Thu May 21 14:21:03 2015 +1000 @@ -176,13 +176,15 @@ extension = os.path.splitext(filename)[1] name = construct_multi_filename(hda_id, filename, extension) target_output_filename = None + data_type = "dataset" if first: target_output_filename = file_name + dataset = "new_primary_dataset" first = False else: target_output_filename = os.path.normpath("/".join([extra_files_path, name])) metadata_file.write( - metadata_to_json(dataset_id, filename, name, extension, target_output_filename)) + metadata_to_json(dataset_id, target_output_filename, name, extension, data_type)) download = truststore.getFile(store, location) if download is None: print("File %s not found." % location.name)