Commit 0e37318c authored by Joao Pedro Lopes's avatar Joao Pedro Lopes
Browse files

FTS-1731: Migrate commit...

FTS-1731: Migrate commit fts-rest@b9ed3327
parent bdb41d04
......@@ -43,11 +43,13 @@ class Submitter:
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)
......
Supports Markdown
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