mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
UVA PB returns the info in a list. We want the dictionary in the list
This commit is contained in:
parent
271d4da5ff
commit
d186b24de3
@ -195,7 +195,11 @@ Please note this is just a few examples, ALL known document types are returned i
|
||||
if cmd == 'roles':
|
||||
retval = StudyService().get_investigators(study_id, all=True)
|
||||
if cmd == 'details':
|
||||
retval = self.pb.get_study_details(study_id)
|
||||
details = self.pb.get_study_details(study_id)
|
||||
if len(details) > 0:
|
||||
retval = details[0]
|
||||
else:
|
||||
retval = None
|
||||
if cmd == 'sponsors':
|
||||
retval = self.pb.get_sponsors(study_id)
|
||||
if cmd == 'documents':
|
||||
|
Loading…
x
Reference in New Issue
Block a user