aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-02-10 11:20:41 +0300
committerFrederick Muriuki Muriithi2023-02-10 11:20:41 +0300
commit0d2a9c130531a2786b2dd01adc172e5005f13f59 (patch)
tree5d90213ffcfe82703a9e6074f0920d7af663d75a
parent0d7dceede0ae557403d84c56105235d938eae8ae (diff)
downloadgenenetwork3-0d2a9c130531a2786b2dd01adc172e5005f13f59.tar.gz
Fix linting errors.
-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=?",