From ac563592e0644bb16ed887bc5833ecb6b671f3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6pf?= Date: Fri, 16 Dec 2022 10:01:02 +0100 Subject: [PATCH] pre-commit install :-) --- backend/app/api/deps.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/app/api/deps.py b/backend/app/api/deps.py index 662fa0e2..e8b780c1 100644 --- a/backend/app/api/deps.py +++ b/backend/app/api/deps.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from typing import Generator from uuid import UUID + from app.config import settings from app.database import engine from app.models import ApiClient @@ -36,10 +37,7 @@ def api_auth( if api_key is not None: if settings.ALLOW_ANY_API_KEY: - return ApiClient( - id=UUID('00000000-1111-2222-3333-444444444444'), - api_key=api_key, name=api_key - ) + return ApiClient(id=UUID("00000000-1111-2222-3333-444444444444"), api_key=api_key, name=api_key) api_client = db.query(ApiClient).filter(ApiClient.api_key == api_key).first() if api_client is not None and api_client.enabled: return api_client