mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Adding forgotten variables to returned dict
This commit is contained in:
parent
91fe5f0cdd
commit
dd10e56d1a
@ -144,7 +144,11 @@ class ApprovalService(object):
|
|||||||
review_complete = 'AllRequiredTraining' in training_val
|
review_complete = 'AllRequiredTraining' in training_val
|
||||||
pi_uid = workflow.study.primary_investigator_id
|
pi_uid = workflow.study.primary_investigator_id
|
||||||
pi_details = LdapService.user_info(pi_uid)
|
pi_details = LdapService.user_info(pi_uid)
|
||||||
details = {'Supervisor': pi_supervisor}
|
details = {
|
||||||
|
'Supervisor': pi_supervisor,
|
||||||
|
'PI_Details': pi_details,
|
||||||
|
'Review': review_complete
|
||||||
|
}
|
||||||
details['person_details'] = []
|
details['person_details'] = []
|
||||||
details['person_details'].append(pi_details)
|
details['person_details'].append(pi_details)
|
||||||
for person in personnel:
|
for person in personnel:
|
||||||
@ -206,13 +210,13 @@ class ApprovalService(object):
|
|||||||
for person in details['person_details']:
|
for person in details['person_details']:
|
||||||
record = {
|
record = {
|
||||||
"study_id": approval.study_id,
|
"study_id": approval.study_id,
|
||||||
"pi_uid": pi_details.uid,
|
"pi_uid": details['PI_Details'].uid,
|
||||||
"pi": pi_details.display_name,
|
"pi": details['PI_Details'].display_name,
|
||||||
"name": person.display_name,
|
"name": person.display_name,
|
||||||
"uid": person.uid,
|
"uid": person.uid,
|
||||||
"email": person.email_address,
|
"email": person.email_address,
|
||||||
"supervisor": details['Supervisor'] if person.uid == details['person_details'][0].uid else "",
|
"supervisor": details['Supervisor'] if person.uid == details['person_details'][0].uid else "",
|
||||||
"review_complete": review_complete,
|
"review_complete": details['Review'],
|
||||||
}
|
}
|
||||||
|
|
||||||
output.append(record)
|
output.append(record)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user