This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -627,10 +627,10 @@ async def get_prompts_with_output_alerts_usage_by_workspace_id(
627
627
conditions ["limit" ] = limit
628
628
conditions ["offset" ] = offset
629
629
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
+ )
634
634
)
635
635
prompts_dict : Dict [str , GetPromptWithOutputsRow ] = {}
636
636
for row in fetched_rows :
@@ -671,7 +671,7 @@ async def get_total_messages_count_by_workspace_id(
671
671
"""Get total count of messages for a given workspace_id, considering trigger_category."""
672
672
sql = text (
673
673
"""
674
- SELECT COUNT(*)
674
+ SELECT COUNT(*)
675
675
FROM prompts p
676
676
LEFT JOIN alerts a ON p.id = a.prompt_id
677
677
WHERE p.workspace_id = :workspace_id
You can’t perform that action at this time.
0 commit comments