Commit b9ed3327 authored by Mihai Patrascoiu's avatar Mihai Patrascoiu
Browse files

When loading a bulk submission, file fields should take priority over job parameter fields

parent 53a92a5e
Pipeline #2677255 passed with stage
in 2 minutes and 32 seconds
......@@ -47,11 +47,13 @@ class Submitter(object):
del job['params']['checksum']
if 'filesize' in job['params']:
for f in job['files']:
f['filesize'] = job['params']['filesize']
if 'filesize' not in f:
f['filesize'] = job['params']['filesize']
del job['params']['filesize']
if 'file_metadata' in job['params']:
for f in job['files']:
f['metadata'] = job['params']['file_metadata']
if 'metadata' not in f:
f['metadata'] = job['params']['file_metadata']
del job['params']['file_metadata']
return json.dumps(job, indent=2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment