# HG changeset patch # User iuc # Date 1606049375 0 # Node ID 52b6a4d98009da64b438f459b2b33738e121c8e3 # Parent 5bcf0e24f42c24c05e0fe6d27e27fd1d02608d5d "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_gemini_database_downloader commit 02d2967f77e3fa5a18aea63dc84aa9ab418dc165" diff -r 5bcf0e24f42c -r 52b6a4d98009 data_manager/data_manager_gemini_download.py --- a/data_manager/data_manager_gemini_download.py Thu May 14 05:08:26 2020 -0400 +++ b/data_manager/data_manager_gemini_download.py Sun Nov 22 12:49:35 2020 +0000 @@ -16,7 +16,8 @@ def main(): today = datetime.date.today() - params = json.loads(open(sys.argv[1]).read()) + with open(sys.argv[1]) as fh: + params = json.load(fh) target_directory = params['output_data'][0]['extra_files_path'] os.mkdir(target_directory) @@ -83,8 +84,8 @@ } # ... and save it to the json results file - with open(sys.argv[1], 'w') as out: - out.write(json.dumps(data_manager_dict)) + with open(sys.argv[1], 'w') as fh: + json.dump(data_manager_dict, fh, sort_keys=True) if __name__ == "__main__":