Skip to content

Commit

Permalink
Add Festival ILP to leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKain committed Mar 3, 2020
1 parent ad4fd7f commit d258858
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/routes/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ const allQueries = [
}
},

{
name: 'Most Festive',
description: 'Most ILP spent on festivals',
query: { 'statistics.Game.Premium.ILP.FestivalSpend': { $gt: 0 } },
fields: { ...ALWAYS_FIELDS, 'statistics.Game.Premium.ILP.FestivalSpend': 1 },
params: { sort: { 'statistics.Game.Premium.ILP.FestivalSpend': -1 }, limit: RUNNER_UPS },
formatter: (x) => {
return {
name: get(x, 'owner'),
value: get(x, 'statistics.Game.Premium.ILP.FestivalSpend', 0),
exactValue: get(x, 'statistics.Game.Premium.ILP.FestivalSpend').toLocaleString() + ' ILP'
};
}
},

{ cat: 'The Best of the Best' },

{
Expand Down

0 comments on commit d258858

Please sign in to comment.