upgrading Sartography libraries, and fixing a potential error where a file can't be located in the documents.xslt

This commit is contained in:
Dan 2021-05-14 14:10:14 -04:00
parent a1bb30e689
commit 427875b8dd
2 changed files with 5 additions and 2 deletions

2
Pipfile.lock generated
View File

@ -957,7 +957,7 @@
},
"spiffworkflow": {
"git": "https://github.com/sartography/SpiffWorkflow.git",
"ref": "1a44d004d657bc5773551254aafba88993ae6d35"
"ref": "02ea7fa37383560f3baecd3d4983457313c0ef2c"
},
"sqlalchemy": {
"hashes": [

View File

@ -53,7 +53,10 @@ def get_document_directory(study_id, workflow_id=None):
file_models = FileService.get_files_for_study(study_id=study_id)
files = (to_file_api(model) for model in file_models)
for file in files:
doc_code = doc_dict[file.irb_doc_code]
if file.irb_doc_code in doc_dict:
doc_code = doc_dict[file.irb_doc_code]
else:
doc_code = {'category1': "Unknown", 'category2': None, 'category3': None}
if workflow_id:
expand = file.workflow_id == int(workflow_id)
else: