Add filename to files listing.

Fixes #297
This commit is contained in:
Kelly McDonald 2021-04-28 10:37:14 -04:00
parent 71a63c049d
commit cc77a9182c
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ class StudyService(object):
doc['files'] = [] doc['files'] = []
for file in doc_files: for file in doc_files:
doc['files'].append({'file_id': file.id, doc['files'].append({'file_id': file.id,
'name': file.name,
'workflow_id': file.workflow_id}) 'workflow_id': file.workflow_id})
# update the document status to match the status of the workflow it is in. # update the document status to match the status of the workflow it is in.