From e05a72a4ce855bc86ed88b15f76a258b4b8d887f Mon Sep 17 00:00:00 2001 From: Abram Date: Fri, 20 Dec 2024 13:44:00 +0100 Subject: [PATCH] style (backend): format backend --- agenta-backend/agenta_backend/routers/app_router.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agenta-backend/agenta_backend/routers/app_router.py b/agenta-backend/agenta_backend/routers/app_router.py index 7179d7384..14ace3bf6 100644 --- a/agenta-backend/agenta_backend/routers/app_router.py +++ b/agenta-backend/agenta_backend/routers/app_router.py @@ -212,7 +212,9 @@ async def create_app( if isCloudEE(): api_key_from_headers = request.headers.get("Authorization", None) if api_key_from_headers is not None: - api_key = api_key_from_headers.split(" ")[-1] # ["ApiKey", "xxxxx.xxxxxx"] + api_key = api_key_from_headers.split(" ")[ + -1 + ] # ["ApiKey", "xxxxx.xxxxxx"] await check_apikey_action_access( api_key, request.state.user_id,