Trying hard to figure out why the DCOS servers think the protocol builder is enabled.

This commit is contained in:
Dan Funk 2020-05-26 23:18:14 -04:00
parent 7869fa596e
commit 0025931a2e
1 changed files with 25 additions and 23 deletions

View File

@ -216,8 +216,10 @@ class StudyService(object):
"""Assures that the studies we have locally for the given user are
in sync with the studies available in protocol builder. """
if not ProtocolBuilderService.is_enabled():
return
if ProtocolBuilderService.is_enabled():
app.logger.info("The Protocol Builder is enabled. app.config['PB_ENABLED'] = " +
str(app.config['PB_ENABLED']))
# Get studies matching this user from Protocol Builder
pb_studies: List[ProtocolBuilderStudy] = ProtocolBuilderService.get_studies(user.uid)