diff options
-rw-r--r-- | main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,10 +2,11 @@ import sys import uuid import json -import click from math import ceil from datetime import datetime + +import click import bcrypt from yoyo import get_backend, read_migrations @@ -91,6 +92,7 @@ def init_dev_clients(): @app.cli.command() @click.argument("user_id", type=click.UUID) def assign_system_admin(user_id: uuid.UUID): + """Assign user with ID `user_id` administrator role.""" dburi = app.config["AUTH_DB"] with db.connection(dburi) as conn, db.cursor(conn) as cursor: cursor.execute("SELECT * FROM users WHERE user_id=?", |