summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-22 18:00:01 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-29 13:01:28 +0200
commitf834253a80a45d40052c3f6f19aed8ca9277f643 (patch)
tree8843cffe679e327bdde3270f9f6f4009c11d8268
parentcb2f534f6425d4b48e5c531a11a85e45cdd7db41 (diff)
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
-rw-r--r--ogcp/views.py4
1 files changed, 0 insertions, 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