From 0d2a9c130531a2786b2dd01adc172e5005f13f59 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 10 Feb 2023 11:20:41 +0300 Subject: Fix linting errors. --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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=?", -- cgit v1.2.3