Skip to content

Commit b61e08c

Browse files
committed
Make sure we get a response from PB
1 parent 213b9f4 commit b61e08c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crc/services/study_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ def sync_with_protocol_builder_if_enabled(self, user, specs):
556556
# we don't manage Exempt studies
557557
pb_study_info = ProtocolBuilderService.get_irb_info(study.id)
558558
if len(pb_study_info) > 0:
559-
if ('IRB_REVIEW_TYPE' in ProtocolBuilderService.get_irb_info(study.id)[0] and
560-
ProtocolBuilderService.get_irb_info(study.id)[0]['IRB_REVIEW_TYPE'] ==
559+
if ('IRB_REVIEW_TYPE' in pb_study_info[0] and
560+
pb_study_info[0]['IRB_REVIEW_TYPE'] ==
561561
'Exempt'):
562562
self.__delete_exempt_study(study.id)
563563

0 commit comments

Comments
 (0)