Bump BASE_URL recovery with other environment vars
This commit is contained in:
parent
850dc2fdcc
commit
fd63fbe9b9
1 changed files with 3 additions and 1 deletions
4
app.py
4
app.py
|
@ -13,10 +13,12 @@ GROUP = os.environ.get('GROUP', '1')
|
|||
ALLOWED_YEARS = os.environ.get('ALLOWED_YEARS', '3,4,5').split(',')
|
||||
ALLOWED_GROUPS = os.environ.get('ALLOWED_GROUPS', '1,2,3').split(',')
|
||||
|
||||
BASE_URL = os.environ.get('BASE_URL', None)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
url = os.environ.get('URL', None)
|
||||
url = BASE_URL
|
||||
if url is None:
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue