Skip to content

Commit

Permalink
update shield stat dates
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeppell committed Mar 3, 2025
1 parent 2e7eb7f commit 34793e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/mongodb/shield-stats.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//Number of shield tournaments
db.tournament2
.find({ 'schedule.freq': 'shield', startsAt: { $gte: ISODate('2024-11-01'), $lt: ISODate('2024-12-01') } })
.find({ 'schedule.freq': 'shield', startsAt: { $gte: ISODate('2025-03-01'), $lt: ISODate('2025-04-01') } })
.count();

//Number of games played
db.tournament2.aggregate([
{
$match: {
$and: [{ 'schedule.freq': 'shield' }, { startsAt: { $gte: ISODate('2024-11-01'), $lt: ISODate('2024-12-01') } }],
$and: [{ 'schedule.freq': 'shield' }, { startsAt: { $gte: ISODate('2025-03-01'), $lt: ISODate('2025-04-01') } }],
},
},
{ $project: { fField: { $concat: ['tournament:stats:', '$_id'] } } },
Expand All @@ -24,7 +24,7 @@ db.tournament_leaderboard.aggregate([
$match: {
$and: [
{ 'tour.schedule.freq': 'shield' },
{ 'tour.startsAt': { $gte: ISODate('2024-11-01'), $lt: ISODate('2024-12-01') } },
{ 'tour.startsAt': { $gte: ISODate('2025-03-01'), $lt: ISODate('2025-04-01') } },
{ u: 'pst-greedy-tom' },
],
},
Expand All @@ -40,7 +40,7 @@ db.tournament_leaderboard.aggregate([
$match: {
$and: [
{ 'tour.schedule.freq': 'shield' },
{ 'tour.startsAt': { $gte: ISODate('2024-11-01'), $lt: ISODate('2024-12-01') } },
{ 'tour.startsAt': { $gte: ISODate('2025-03-01'), $lt: ISODate('2025-04-01') } },
{ u: 'pst-greedy-tom' },
],
},
Expand Down

0 comments on commit 34793e1

Please sign in to comment.