refactor: clean up imports and remove trailing whitespace in multiple files
This commit is contained in:
@@ -21,7 +21,12 @@ from app.core.time import utcnow
|
|||||||
from app.db.pagination import paginate
|
from app.db.pagination import paginate
|
||||||
from app.db.session import get_session
|
from app.db.session import get_session
|
||||||
from app.integrations.openclaw_gateway import GatewayConfig as GatewayClientConfig
|
from app.integrations.openclaw_gateway import GatewayConfig as GatewayClientConfig
|
||||||
from app.integrations.openclaw_gateway import OpenClawGatewayError, ensure_session, openclaw_call, send_message
|
from app.integrations.openclaw_gateway import (
|
||||||
|
OpenClawGatewayError,
|
||||||
|
ensure_session,
|
||||||
|
openclaw_call,
|
||||||
|
send_message,
|
||||||
|
)
|
||||||
from app.models.activity_events import ActivityEvent
|
from app.models.activity_events import ActivityEvent
|
||||||
from app.models.agents import Agent
|
from app.models.agents import Agent
|
||||||
from app.models.approvals import Approval
|
from app.models.approvals import Approval
|
||||||
|
|||||||
@@ -71,4 +71,3 @@ async def get_markdown(
|
|||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
raise HTTPException(status_code=status.HTTP_502_BAD_GATEWAY, detail=str(exc)) from exc
|
raise HTTPException(status_code=status.HTTP_502_BAD_GATEWAY, detail=str(exc)) from exc
|
||||||
return SoulsDirectoryMarkdownResponse(handle=safe_handle, slug=safe_slug, content=content)
|
return SoulsDirectoryMarkdownResponse(handle=safe_handle, slug=safe_slug, content=content)
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,3 @@ class SoulsDirectoryMarkdownResponse(BaseModel):
|
|||||||
handle: str
|
handle: str
|
||||||
slug: str
|
slug: str
|
||||||
content: str
|
content: str
|
||||||
|
|
||||||
|
|||||||
@@ -26,4 +26,3 @@ def test_search_souls_matches_handle_or_slug() -> None:
|
|||||||
]
|
]
|
||||||
assert search_souls(refs, query="writer", limit=20) == [refs[1]]
|
assert search_souls(refs, query="writer", limit=20) == [refs[1]]
|
||||||
assert search_souls(refs, query="thedaviddias", limit=20) == [refs[0], refs[1]]
|
assert search_souls(refs, query="thedaviddias", limit=20) == [refs[0], refs[1]]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user