refactor(api): clean up imports and add spacing for readability

- Removed duplicate import of `FolderValidationError` in `rest_api.py` to streamline the code.
- Added a blank line in `db.py` before the `list_folders` function to enhance code readability.
- These changes improve the organization and clarity of the API codebase.
This commit is contained in:
abhi1992002
2026-02-17 10:30:09 +05:30
parent 792e141183
commit cd2e281193
2 changed files with 2 additions and 1 deletions

View File

@@ -952,6 +952,7 @@ async def add_store_agent_to_library(
############ Folder DB Functions #############
##############################################
async def list_folders(
user_id: str,
parent_id: Optional[str] = None,

View File

@@ -45,13 +45,13 @@ from backend.api.features.chat.completion_consumer import (
start_completion_consumer,
stop_completion_consumer,
)
from backend.api.features.library.exceptions import FolderValidationError
from backend.blocks.llm import DEFAULT_LLM_MODEL
from backend.data.model import Credentials
from backend.integrations.providers import ProviderName
from backend.monitoring.instrumentation import instrument_fastapi
from backend.util import json
from backend.util.cloud_storage import shutdown_cloud_storage_handler
from backend.api.features.library.exceptions import FolderValidationError
from backend.util.exceptions import (
MissingConfigError,
NotAuthorizedError,