aboutsummaryrefslogtreecommitdiff
path: root/gn3/app.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-15 14:44:07 +0300
committerBonfaceKilz2021-03-15 14:44:07 +0300
commit9ab0e87ab7f016cea5b12f9dd96af00b561a8493 (patch)
tree37ab05066a181bd00157f1638b63e16f62afe9e6 /gn3/app.py
parent236ca06dc4c84baecb7b090b8724db997a5d988a (diff)
downloadgenenetwork3-9ab0e87ab7f016cea5b12f9dd96af00b561a8493.tar.gz
Delete redundant gn3/config.py
All default confs should go to one place: gn3/setting.py * gn3/app.py: Delete get_config. Apply pep-8 formatting. * gn3/config.py: Delete it. Move conf options to... * gn3/settings.py: ... here.
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/gn3/app.py b/gn3/app.py
index c912ed9..a684d25 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -4,7 +4,6 @@ import os
from typing import Dict
from typing import Union
from flask import Flask
-from gn3.config import get_config
from gn3.api.gemma import gemma
from gn3.api.general import general
from gn3.api.correlation import correlation
@@ -16,10 +15,6 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
# Load default configuration
app.config.from_object("gn3.settings")
- my_config = get_config()
-
- app.config.from_object(my_config["dev"])
-
# Load environment configuration
if "GN3_CONF" in os.environ:
app.config.from_envvar('GN3_CONF')
@@ -32,5 +27,5 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
app.config.from_pyfile(config)
app.register_blueprint(general, url_prefix="/api/")
app.register_blueprint(gemma, url_prefix="/api/gemma")
- app.register_blueprint(correlation,url_prefix="/api/correlation")
+ app.register_blueprint(correlation, url_prefix="/api/correlation")
return app