Merge pull request #299 from sartography/297-filename-in-documents
Add filename to files listing.
This commit is contained in:
commit
81467d6a8d
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue