From f834253a80a45d40052c3f6f19aed8ca9277f643 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 22 Sep 2022 18:00:01 +0200 Subject: Remove unused variable "g.server" Since ogCP multi ogServer support, g.server is not used anymore. The list of available servers is stored in the global variable "servers" at og_server.py --- ogcp/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ogcp/views.py b/ogcp/views.py index 981892b..3243062 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -313,10 +313,6 @@ def load_user(username): user = User(username, user_dict.get('SCOPES'), user_dict.get('ADMIN')) return user -@app.before_request -def load_config(): - g.server = servers[0] - @app.errorhandler(404) def page_not_found(error): return render_template('error.html', message=error), 404 -- cgit v1.2.3-18-g5258