From 494833863422e186a4ddd24c7990a8d043f6975a Mon Sep 17 00:00:00 2001 From: less Date: Mon, 7 Aug 2023 14:36:30 +0700 Subject: [PATCH] chore: increase ranking based on last 7 days activity --- src/helpers/spaces.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/spaces.ts b/src/helpers/spaces.ts index 61ec0caa..4456f0fa 100644 --- a/src/helpers/spaces.ts +++ b/src/helpers/spaces.ts @@ -27,11 +27,11 @@ function getPopularity( } ): number { let popularity = - (spaceVotes[id]?.count || 0) / 40 + + (spaceVotes[id]?.count || 0) / 100 + (spaceVotes[id]?.count_7d || 0) + - (spaceProposals[id]?.count || 0) / 40 + + (spaceProposals[id]?.count || 0) / 100 + (spaceProposals[id]?.count_7d || 0) + - (spaceFollowers[id]?.count || 0) / 20 + + (spaceFollowers[id]?.count || 0) / 50 + (spaceFollowers[id]?.count_7d || 0); if (params.networks.some(network => testnets.includes(network))) popularity = 1;