Bump BASE_URL recovery with other environment vars

This commit is contained in:
Gabriel Augendre 2016-09-17 13:38:40 +02:00
parent 850dc2fdcc
commit fd63fbe9b9
No known key found for this signature in database
GPG key ID: D2B6A5B41FC438B1

4
app.py
View file

@ -13,10 +13,12 @@ GROUP = os.environ.get('GROUP', '1')
ALLOWED_YEARS = os.environ.get('ALLOWED_YEARS', '3,4,5').split(',') ALLOWED_YEARS = os.environ.get('ALLOWED_YEARS', '3,4,5').split(',')
ALLOWED_GROUPS = os.environ.get('ALLOWED_GROUPS', '1,2,3').split(',') ALLOWED_GROUPS = os.environ.get('ALLOWED_GROUPS', '1,2,3').split(',')
BASE_URL = os.environ.get('BASE_URL', None)
@app.route("/") @app.route("/")
def hello(): def hello():
url = os.environ.get('URL', None) url = BASE_URL
if url is None: if url is None:
return "" return ""