From 3b36aa4d99835e8fc9fb677d729def178a0c9e54 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 17 Jul 2024 13:07:25 -0500 Subject: Remove flask CLI command We run the scripts directly, not via flask. --- gn_auth/wsgi.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gn_auth/wsgi.py') 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: @@ -140,11 +139,6 @@ def assign_system_admin(user_id: uuid.UUID): print(nfe, file=sys.stderr) 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.""" -- cgit v1.2.3