Skip to content

Commit 4d7b36a

Browse files
author
Roy
committed
Enhance get_views_aspects function to filter non-null transcripts and set a limit for query results.
1 parent 6065af0 commit 4d7b36a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,9 @@ async def get_views_aspects(
718718
"conversation_segment",
719719
{
720720
"query": {
721-
"filter": {"id": {"_in": segment_ids}},
721+
"filter": {"id": {"_in": segment_ids}, "transcript": {"_nnull": True}},
722722
"fields": ["id", "contextual_transcript", "transcript"],
723+
"limit": -1,
723724
},
724725
},
725726
)

0 commit comments

Comments
 (0)