aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.py b/main.py
index 4a65db4..b6b323c 100644
--- a/main.py
+++ b/main.py
@@ -108,6 +108,12 @@ def assign_system_admin(user_id: uuid.UUID):
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."""
+ from scripts.migrate_existing_data import entry
+ entry(app.config["AUTH_DB"], app.config["SQL_URI"])
+
##### END: CLI Commands #####
if __name__ == '__main__':