restore extra spaces
This commit is contained in:
parent
9fdddab11b
commit
4fffb9c1d5
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,7 @@ URL_PREFIX = os.environ.get('URL_PREFIX', None)
|
|||
HOST_OVERRIDE = os.environ.get('HOST_OVERRIDE', None)
|
||||
TOKEN_SEPARATOR = '~'
|
||||
|
||||
|
||||
# Initialize Flask Application
|
||||
app = Flask(__name__)
|
||||
if os.environ.get('DEBUG'):
|
||||
|
@ -28,6 +29,8 @@ app.config.update(
|
|||
# Set up Babel
|
||||
def get_locale():
|
||||
return request.accept_languages.best_match(['en', 'es', 'de', 'nl'])
|
||||
|
||||
|
||||
babel = Babel(app, locale_selector=get_locale)
|
||||
|
||||
# Initialize Redis
|
||||
|
@ -61,6 +64,7 @@ def check_redis_alive(fn):
|
|||
return abort(500)
|
||||
return inner
|
||||
|
||||
|
||||
def encrypt(password):
|
||||
"""
|
||||
Take a password string, encrypt it with Fernet symmetric encryption,
|
||||
|
@ -216,5 +220,6 @@ def health_check():
|
|||
def main():
|
||||
app.run(host='0.0.0.0')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue