Skip to content

Commit

Permalink
chore: increase ranking based on last 7 days activity
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack committed Aug 7, 2023
1 parent 49420aa commit 4948338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/spaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4948338

Please sign in to comment.