Commit 646c8d11 authored by Joao Pedro Lopes's avatar Joao Pedro Lopes
Browse files

FTS-1702 Enforce params::file_metadata field is JSON object

parent 2752e2d0
...@@ -447,6 +447,8 @@ class JobBuilder(object): ...@@ -447,6 +447,8 @@ class JobBuilder(object):
activity=file_dict.get('activity', 'default'), activity=file_dict.get('activity', 'default'),
hashed_id=shared_hashed_id if shared_hashed_id else _generate_hashed_id() hashed_id=shared_hashed_id if shared_hashed_id else _generate_hashed_id()
) )
if f['file_metadata'] != None:
f['file_metadata'] = _metadata(f['file_metadata'])
self.files.append(f) self.files.append(f)
def _apply_selection_strategy(self): def _apply_selection_strategy(self):
......
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