diff --git a/backend/routers/channels.py b/backend/routers/channels.py index 6e8252f..41b1e53 100644 --- a/backend/routers/channels.py +++ b/backend/routers/channels.py @@ -730,7 +730,7 @@ def _fetch_popular_task(channel_id: int, youtube_channel_id: str): text(""" SELECT youtube_video_id FROM videos WHERE channel_id = :cid - ORDER BY (view_count IS NULL) DESC, published_at DESC NULLS LAST + ORDER BY (view_count IS NULL) DESC, RANDOM() LIMIT 200 """), {"cid": channel_id},