mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-24 21:38:09 +02:00
style: fix formatting issues
This commit is contained in:
parent
3c40c6e365
commit
c65cda24d7
7 changed files with 39 additions and 28 deletions
|
|
@ -123,7 +123,9 @@ async def list_all_permissions(
|
|||
for perm in Permission:
|
||||
# Extract category from permission value (e.g., "documents:read" -> "documents")
|
||||
category = perm.value.split(":")[0] if ":" in perm.value else "general"
|
||||
description = PERMISSION_DESCRIPTIONS.get(perm.value, f"Permission for {perm.value}")
|
||||
description = PERMISSION_DESCRIPTIONS.get(
|
||||
perm.value, f"Permission for {perm.value}"
|
||||
)
|
||||
|
||||
permissions.append(
|
||||
PermissionInfo(
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ from sqlalchemy.ext.asyncio import AsyncSession
|
|||
from sqlalchemy.future import select
|
||||
|
||||
from app.agents.new_chat.chat_deepagent import create_surfsense_deep_agent
|
||||
from app.utils.content_utils import bootstrap_history_from_db
|
||||
from app.agents.new_chat.checkpointer import get_checkpointer
|
||||
from app.agents.new_chat.llm_config import (
|
||||
AgentConfig,
|
||||
|
|
@ -35,6 +34,7 @@ from app.services.chat_session_state_service import (
|
|||
)
|
||||
from app.services.connector_service import ConnectorService
|
||||
from app.services.new_streaming_service import VercelStreamingService
|
||||
from app.utils.content_utils import bootstrap_history_from_db
|
||||
|
||||
|
||||
def format_attachments_as_context(attachments: list[ChatAttachment]) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue