Changed PB_BASE_URL and PB_USER_STUDIES_URL for testing move to production

This commit is contained in:
mike cullerton 2021-11-02 12:01:06 -04:00
parent 8a6c1e1b51
commit b80a2d181c
1 changed files with 6 additions and 2 deletions

View File

@ -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")