From 986f7202d2eeb4af1f4fdb18e8150228bfec4451 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 18 Oct 2023 17:47:32 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(api=5Fkey.py):=20remove=20?= =?UTF-8?q?unused=20import=20'httpx.get'=20to=20improve=20code=20cleanline?= =?UTF-8?q?ss=20and=20reduce=20potential=20confusion=20=F0=9F=90=9B=20fix(?= =?UTF-8?q?api=5Fkey.py):=20fix=20import=20statement=20for=20'get=5Fcurren?= =?UTF-8?q?t=5Factive=5Fuser'=20function=20in=20'auth=5Futils'=20module=20?= =?UTF-8?q?to=20resolve=20import=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/api_key.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/langflow/api/v1/api_key.py b/src/backend/langflow/api/v1/api_key.py index c804746fc..d98da1c66 100644 --- a/src/backend/langflow/api/v1/api_key.py +++ b/src/backend/langflow/api/v1/api_key.py @@ -1,6 +1,5 @@ from uuid import UUID from fastapi import APIRouter, HTTPException, Depends, Body -from httpx import get from langflow.api.v1.schemas import ApiKeysResponse from langflow.services.auth import utils as auth_utils from langflow.services.database.models.api_key.api_key import ( @@ -35,7 +34,7 @@ router = APIRouter(tags=["APIKey"], prefix="/api_key") @router.get("/", response_model=ApiKeysResponse) def get_api_keys_route( db: Session = Depends(get_session), - current_user: User = Depends(auth_utils.auth_utils.get_current_active_user), + current_user: User = Depends(auth_utils.get_current_active_user), ): try: user_id = current_user.id