restore extra spaces

This commit is contained in:
Bert Roelofsen 2024-02-22 10:29:06 +01:00
parent 9fdddab11b
commit 4fffb9c1d5

View file

@ -17,6 +17,7 @@ URL_PREFIX = os.environ.get('URL_PREFIX', None)
HOST_OVERRIDE = os.environ.get('HOST_OVERRIDE', None) HOST_OVERRIDE = os.environ.get('HOST_OVERRIDE', None)
TOKEN_SEPARATOR = '~' TOKEN_SEPARATOR = '~'
# Initialize Flask Application # Initialize Flask Application
app = Flask(__name__) app = Flask(__name__)
if os.environ.get('DEBUG'): if os.environ.get('DEBUG'):
@ -28,6 +29,8 @@ app.config.update(
# Set up Babel # Set up Babel
def get_locale(): def get_locale():
return request.accept_languages.best_match(['en', 'es', 'de', 'nl']) return request.accept_languages.best_match(['en', 'es', 'de', 'nl'])
babel = Babel(app, locale_selector=get_locale) babel = Babel(app, locale_selector=get_locale)
# Initialize Redis # Initialize Redis
@ -61,6 +64,7 @@ def check_redis_alive(fn):
return abort(500) return abort(500)
return inner return inner
def encrypt(password): def encrypt(password):
""" """
Take a password string, encrypt it with Fernet symmetric encryption, Take a password string, encrypt it with Fernet symmetric encryption,
@ -216,5 +220,6 @@ def health_check():
def main(): def main():
app.run(host='0.0.0.0') app.run(host='0.0.0.0')
if __name__ == '__main__': if __name__ == '__main__':
main() main()