Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
#587 DataObject file_relative_path cannot be null
Browse files Browse the repository at this point in the history
  • Loading branch information
nhammond committed May 30, 2019
1 parent 9b5cbbc commit 283059a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/loomengine_utils/import_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def _render_file_data_object_dict(
'filename': filename,
'md5': md5,
'imported_from_url': imported_from_url,
'file_relative_path': file_relative_path,
'source_type': source_type,
'link': False,
}
Expand All @@ -277,6 +276,8 @@ def _render_file_data_object_dict(
'upload_status': 'complete',
'link': True,
})
if file_relative_path:
file_data_object['value']['file_relative_path'] = file_relative_path
if comments:
file_data_object['value']['import_comments'] = comments
if metadata.get('uuid'):
Expand Down

0 comments on commit 283059a

Please sign in to comment.