diff --git a/solvable/src/webservice/server.py b/solvable/src/webservice/server.py index f76a5d8..0e8fe90 100644 --- a/solvable/src/webservice/server.py +++ b/solvable/src/webservice/server.py @@ -10,11 +10,7 @@ BASEURL = getenv('BASEURL', '') init_db() app = Flask(__name__) app.secret_key = urandom(32) - - -def get_url(endpoint): - return f'{BASEURL}{url_for(endpoint)}' -app.jinja_env.globals.update(get_url=get_url) +app.jinja_env.globals.update(get_url=lambda endpoint: f'{BASEURL}{url_for(endpoint)}') # pylint: disable=no-member @app.route('/', methods=['GET', 'POST'])