Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit c41b4ad

Browse files
committed
fix lint
1 parent b820548 commit c41b4ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/codegate/db/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,10 @@ async def get_prompts_with_output_alerts_usage_by_workspace_id(
627627
conditions["limit"] = limit
628628
conditions["offset"] = offset
629629

630-
fetched_rows: List[
631-
IntermediatePromptWithOutputUsageAlerts
632-
] = await self._exec_select_conditions_to_pydantic(
633-
IntermediatePromptWithOutputUsageAlerts, sql, conditions, should_raise=True
630+
fetched_rows: List[IntermediatePromptWithOutputUsageAlerts] = (
631+
await self._exec_select_conditions_to_pydantic(
632+
IntermediatePromptWithOutputUsageAlerts, sql, conditions, should_raise=True
633+
)
634634
)
635635
prompts_dict: Dict[str, GetPromptWithOutputsRow] = {}
636636
for row in fetched_rows:
@@ -671,7 +671,7 @@ async def get_total_messages_count_by_workspace_id(
671671
"""Get total count of messages for a given workspace_id, considering trigger_category."""
672672
sql = text(
673673
"""
674-
SELECT COUNT(*)
674+
SELECT COUNT(*)
675675
FROM prompts p
676676
LEFT JOIN alerts a ON p.id = a.prompt_id
677677
WHERE p.workspace_id = :workspace_id

0 commit comments

Comments
 (0)