From b80a2d181c137e2a4cf616bc92b8cde560f6bc9d Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Tue, 2 Nov 2021 12:01:06 -0400 Subject: [PATCH] Changed PB_BASE_URL and PB_USER_STUDIES_URL for testing move to production --- config/default.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/default.py b/config/default.py index 12288d0f..8f3b633e 100644 --- a/config/default.py +++ b/config/default.py @@ -57,8 +57,12 @@ SECRET_KEY = environ.get('SECRET_KEY', default="Shhhh!!! This is secret! And be SWAGGER_AUTH_KEY = environ.get('SWAGGER_AUTH_KEY', default="SWAGGER") # %s/%i placeholders expected for uva_id and study_id in various calls. PB_ENABLED = environ.get('PB_ENABLED', default="false") == "true" -PB_BASE_URL = environ.get('PB_BASE_URL', default="http://localhost:5001/v2.0/").strip('/') + '/' # Trailing slash required -PB_USER_STUDIES_URL = environ.get('PB_USER_STUDIES_URL', default=PB_BASE_URL + "user_studies?uva_id=%s") +# PB_BASE_URL = environ.get('PB_BASE_URL', default="http://localhost:5001/v2.0/").strip('/') + '/' # Trailing slash required +PB_BASE_URL = environ.get('PB_BASE_URL', default="https://vpr-dev01.web.virginia.edu/webservices/crconnect/crconnect.cfc").strip('/') # Trailing slash required +# https://vpr-dev01.web.virginia.edu/webservices/crconnect/crconnect.cfc?method=user_studies&uva_id=dhf8r +# https://vpr-dev01.web.virginia.edu/webservices/crconnect/crconnect.cfc?method=user_studies&uva_id=dhf8r +PB_USER_STUDIES_URL = environ.get('PB_USER_STUDIES_URL', default=PB_BASE_URL + "?method=user_studies&uva_id=%s") +# PB_USER_STUDIES_URL = environ.get('PB_USER_STUDIES_URL', default=PB_BASE_URL + "user_studies?uva_id=%s") PB_INVESTIGATORS_URL = environ.get('PB_INVESTIGATORS_URL', default=PB_BASE_URL + "investigators?studyid=%i") PB_REQUIRED_DOCS_URL = environ.get('PB_REQUIRED_DOCS_URL', default=PB_BASE_URL + "required_docs?studyid=%i") PB_STUDY_DETAILS_URL = environ.get('PB_STUDY_DETAILS_URL', default=PB_BASE_URL + "study?studyid=%i")