aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.py b/main.py
index b6b323c..9864240 100644
--- a/main.py
+++ b/main.py
@@ -15,6 +15,8 @@ from gn3.auth.authentication.users import hash_password
from gn3.auth import db
+from scripts import migrate_existing_data as med# type: ignore[import]
+
app = create_app()
##### BEGIN: CLI Commands #####
@@ -111,8 +113,7 @@ def assign_system_admin(user_id: uuid.UUID):
@app.cli.command()
def make_data_public():
"""Make existing data that is not assigned to any group publicly visible."""
- from scripts.migrate_existing_data import entry
- entry(app.config["AUTH_DB"], app.config["SQL_URI"])
+ med.entry(app.config["AUTH_DB"], app.config["SQL_URI"])
##### END: CLI Commands #####