aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-28 10:24:11 +0300
committerFrederick Muriuki Muriithi2024-02-28 10:24:11 +0300
commitdfd855acbf302e2d3b323f292da27796305fac76 (patch)
treec50b856392e1ebe38d23c32a4accd4ed78219c3b
parent875af9519a3aad5199e476e863f44fbe947ae37e (diff)
downloadgn-uploader-dfd855acbf302e2d3b323f292da27796305fac76.tar.gz
Remove last vestiges of flask's "instance path" configurations.
-rw-r--r--qc_app/__init__.py2
-rw-r--r--wsgi.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/qc_app/__init__.py b/qc_app/__init__.py
index 045572c..b40ec46 100644
--- a/qc_app/__init__.py
+++ b/qc_app/__init__.py
@@ -17,7 +17,7 @@ def override_settings_with_envvars(
for setting in (key for key in app.config if key not in ignore):
app.config[setting] = os.environ.get(setting) or app.config[setting]
-def create_app(instance_dir):
+def create_app():
"""The application factory"""
app = Flask(__name__)
app.config.from_pyfile(os.path.join(os.getcwd(), "etc/default_config.py"))
diff --git a/wsgi.py b/wsgi.py
index 0f246aa..ff24d78 100644
--- a/wsgi.py
+++ b/wsgi.py
@@ -1,12 +1,12 @@
"""Run the application"""
-from qc_app import create_app, instance_path
+from qc_app import create_app
from qc_app.check_connections import check_db, check_redis
def check_and_build_app():
"""Setup the application for running."""
# Setup the app
- appl = create_app(instance_path())
+ appl = create_app()
# Check connections
check_db(appl.config["SQL_URI"])