manual fixes for some C408

This commit is contained in:
AUTOMATIC
2023-05-10 11:55:09 +03:00
parent a5121e7a06
commit d25219b7e8
7 changed files with 15 additions and 15 deletions

View File

@@ -165,7 +165,7 @@ def api_middleware(app: FastAPI):
class Api:
def __init__(self, app: FastAPI, queue_lock: Lock):
if shared.cmd_opts.api_auth:
self.credentials = dict()
self.credentials = {}
for auth in shared.cmd_opts.api_auth.split(","):
user, password = auth.split(":")
self.credentials[user] = password