Merge pull request #299 from sartography/297-filename-in-documents

Add filename to files listing.
This commit is contained in:
Dan Funk 2021-05-04 11:19:59 -04:00 committed by GitHub
commit 81467d6a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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