TIL flake8 :)

This commit is contained in:
Bert Roelofsen 2024-02-23 09:59:36 +01:00
parent 114b5af6c2
commit 106ac26e26

View file

@ -26,6 +26,7 @@ app.secret_key = os.environ.get('SECRET_KEY', 'Secret Key')
app.config.update( app.config.update(
dict(STATIC_URL=os.environ.get('STATIC_URL', 'static'))) dict(STATIC_URL=os.environ.get('STATIC_URL', 'static')))
# 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'])