aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-17 13:07:25 -0500
committerFrederick Muriuki Muriithi2024-07-17 13:07:25 -0500
commit3b36aa4d99835e8fc9fb677d729def178a0c9e54 (patch)
treebf40a5c7800d416079b86f120534e9c9c0174dcf /gn_auth
parent587cbf1c555a0c953e89bbb384f8dda5406e5c20 (diff)
downloadgn-auth-3b36aa4d99835e8fc9fb677d729def178a0c9e54.tar.gz
Remove flask CLI command
We run the scripts directly, not via flask.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/wsgi.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/gn_auth/wsgi.py b/gn_auth/wsgi.py
index 811a0d5..676d1fc 100644
--- a/gn_auth/wsgi.py
+++ b/gn_auth/wsgi.py
@@ -22,7 +22,6 @@ from gn_auth.auth.authentication.users import user_by_id, hash_password
from gn_auth.auth.authorisation.users.admin.models import make_sys_admin
from scripts import register_sys_admin as rsysadm# type: ignore[import]
-from scripts import migrate_existing_data as med# type: ignore[import]
def dev_loggers(appl: Flask) -> None:
@@ -141,11 +140,6 @@ def assign_system_admin(user_id: uuid.UUID):
sys.exit(1)
@app.cli.command()
-def make_data_public():
- """Make existing data that is not assigned to any group publicly visible."""
- med.entry(app.config["AUTH_DB"], app.config["SQL_URI"])
-
-@app.cli.command()
def register_admin():
"""Register the administrator."""
rsysadm.register_admin(Path(app.config["AUTH_DB"]))