Skip to content

Commit

Permalink
Update leaderboard.js
Browse files Browse the repository at this point in the history
This probably needs a better name
  • Loading branch information
DrKain committed Feb 13, 2020
1 parent 86f6679 commit 04173cd
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 @@ -526,6 +526,21 @@ const allQueries = [
}
},

{
name: 'Fanciest Pants',
description: 'Most Fancypants Decisions',
query: { 'statistics.Character.Choose.Personality.Fancypants': { $gt: 0 } },
fields: { ...ALWAYS_FIELDS, 'statistics.Character.Choose.Personality.Fancypants': 1 },
params: { sort: { 'statistics.Character.Choose.Personality.Fancypants': -1 }, limit: RUNNER_UPS },
formatter: (x) => {
return {
name: get(x, 'owner'),
value: get(x, 'statistics.Character.Choose.Personality.Fancypants'),
exactValue: get(x, 'statistics.Character.Choose.Personality.Fancypants').toLocaleString()
};
}
},

{
name: 'Beam Me Up, Scotty',
description: 'Most teleporters',
Expand Down

0 comments on commit 04173cd

Please sign in to comment.