diff --git a/crc/scripts/study_info.py b/crc/scripts/study_info.py index b7cc9bc6..922df5d2 100644 --- a/crc/scripts/study_info.py +++ b/crc/scripts/study_info.py @@ -15,7 +15,7 @@ class StudyInfo(Script): """Please see the detailed description that is provided below. """ pb = ProtocolBuilderService() - type_options = ['info', 'investigators', 'roles', 'details', 'approvals', 'documents', 'protocol'] + type_options = ['info', 'investigators', 'roles', 'details', 'approvals', 'documents', 'protocol','sponsors'] # This is used for test/workflow validation, as well as documentation. example_data = { @@ -345,6 +345,8 @@ Returns information specific to the protocol. retval = StudyService().get_investigators(study_id, all=True) if cmd == 'details': retval = self.pb.get_study_details(study_id) + if cmd == 'sponsors': + retval = self.pb.get_sponsors(study_id) if cmd == 'approvals': retval = StudyService().get_approvals(study_id) if cmd == 'documents': diff --git a/crc/services/protocol_builder.py b/crc/services/protocol_builder.py index c61ef1b4..806055c7 100644 --- a/crc/services/protocol_builder.py +++ b/crc/services/protocol_builder.py @@ -13,7 +13,7 @@ class ProtocolBuilderService(object): INVESTIGATOR_URL = app.config['PB_INVESTIGATORS_URL'] REQUIRED_DOCS_URL = app.config['PB_REQUIRED_DOCS_URL'] STUDY_DETAILS_URL = app.config['PB_STUDY_DETAILS_URL'] - SPONSORS_URL = app.config['PB_STUDY_DETAILS_URL'] + SPONSORS_URL = app.config['PB_SPONSORS_URL'] @staticmethod def is_enabled():