aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-15 04:22:17 +0300
committerFrederick Muriuki Muriithi2022-11-15 04:22:17 +0300
commitb0d4aeb29c059c6dea85a7993149fa1e0697f702 (patch)
tree301bd3db1bb25cf622c7f83c6773e1ac5711ae7e /main.py
parent9aee64c5bccae917ab0e65c882be8f442fc0f5ca (diff)
downloadgenenetwork3-b0d4aeb29c059c6dea85a7993149fa1e0697f702.tar.gz
pylint: Fix linting errors.
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.py b/main.py
index aaa51da..8d03148 100644
--- a/main.py
+++ b/main.py
@@ -1,5 +1,7 @@
"""Main entry point for project"""
+from yoyo import get_backend, read_migrations
+from gn3 import migrations
from gn3.app import create_app
app = create_app()
@@ -8,9 +10,8 @@ app = create_app()
@app.cli.command()
def apply_migrations():
- from yoyo import get_backend, read_migrations
- from gn3.migrations import apply_migrations
- apply_migrations(
+ """Apply the dabasase migrations."""
+ migrations.apply_migrations(
get_backend(f'sqlite:///{app.config["AUTH_DB"]}'),
read_migrations(app.config["AUTH_MIGRATIONS"]))