aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index fc12755..4866e14 100644
--- a/main.py
+++ b/main.py
@@ -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=?",