From 1aaa4202fcd66a8cb29b18c33696f82e0ed27487 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 10 Jul 2024 10:54:36 +0800 Subject: [PATCH] move items which have less than 250 words to quick links section --- packages/api/src/jobs/update_home.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/api/src/jobs/update_home.ts b/packages/api/src/jobs/update_home.ts index 40e79ae21..f59d1e3d9 100644 --- a/packages/api/src/jobs/update_home.ts +++ b/packages/api/src/jobs/update_home.ts @@ -428,8 +428,7 @@ const mixHomeItems = ( const topCandidates = rankedHomeItems.slice(0, 50) - // find the median word count - const wordCountThreshold = 500 + const wordCountThreshold = 250 // separate items into two groups based on word count const shortItems: Array = [] const longItems: Array = []