Skip to content

Commit

Permalink
Update shard shop to filter on phase 3 data
Browse files Browse the repository at this point in the history
  • Loading branch information
4Ply committed Jan 5, 2025
1 parent 3c117c6 commit 6b8331c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,16 @@ class EchoShardListener(
}
*/

// Lobby is running on PST time
val phase2StartDate = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse("2024-12-21T08:00:00")
// Lobby is running on UTC time
val phase3StartDate = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse("2025-01-04T16:00:00")
val fullRunType = runType.fullRunType().lowercase()
val filter = Filters.and(
eq("name", "trade-requested"),
eq("player", playerName),
eq("metadata.run-type", fullRunType),
eq("metadata.source-scoreboard", "$fullRunType-do2.lifetime.escaped.crowns"),
eq("metadata.target-scoreboard", "do2.inventory.shards.$fullRunType"),
gte("createdAt", phase2StartDate)
gte("createdAt", phase3StartDate)
)

val group = Aggregates.group(
Expand Down

0 comments on commit 6b8331c

Please sign in to comment.