aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-27 14:15:01 +0300
committerzsloan2023-07-05 02:08:03 -0500
commit09564a603ede85c821ee12e2cbaeab0776ea9352 (patch)
treece50d7f5f2291b2ed40d6abd548a64f36345a215 /wqflask
parentf36dd29bacc49123e595db196990cdd99ee031d3 (diff)
downloadgenenetwork2-09564a603ede85c821ee12e2cbaeab0776ea9352.tar.gz
Remove unused configs
The individual parts of the URI to the database are not used in the application and thus serve no purpose.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/__init__.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py
index d444161e..25f72ec8 100644
--- a/wqflask/wqflask/__init__.py
+++ b/wqflask/wqflask/__init__.py
@@ -15,8 +15,6 @@ from utility import formatting
from gn3.authentication import DataRole, AdminRole
-from wqflask.database import parse_db_url
-
from wqflask.group_manager import group_management
from wqflask.resource_manager import resource_management
from wqflask.metadata_edits import metadata_edit
@@ -44,13 +42,6 @@ app = Flask(__name__)
# Note no longer use the badly named WQFLASK_OVERRIDES (nyi)
app.config.from_envvar('GN2_SETTINGS')
-DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT = parse_db_url(app.config.get('SQL_URI'))
-app.config["DB_HOST"] = DB_HOST
-app.config["DB_USER"] = DB_USER
-app.config["DB_PASS"] = DB_PASS
-app.config["DB_NAME"] = DB_NAME
-app.config["DB_PORT"] = DB_PORT
-
app.jinja_env.globals.update(
undefined=jinja2.StrictUndefined,
numify=formatting.numify,