diff options
author | Frederick Muriuki Muriithi | 2023-02-10 11:20:41 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-02-10 11:20:41 +0300 |
commit | 0d2a9c130531a2786b2dd01adc172e5005f13f59 (patch) | |
tree | 5d90213ffcfe82703a9e6074f0920d7af663d75a /main.py | |
parent | 0d7dceede0ae557403d84c56105235d938eae8ae (diff) | |
download | genenetwork3-0d2a9c130531a2786b2dd01adc172e5005f13f59.tar.gz |
Fix linting errors.
Diffstat (limited to 'main.py')
-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=?", |