Skip to content

Commit

Permalink
releaseb add blitz stats counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Sep 11, 2024
1 parent 21633cb commit f4b65d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/github/sammers/pla/http/Http.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ public void start() {
Integer threes = Optional.ofNullable(refs.diffsByBracket(THREE_V_THREE, region).get()).map(diff -> diff.chars().size()).orElse(0);
Integer rbgs = Optional.ofNullable(refs.diffsByBracket(RBG, region).get()).map(diff -> diff.chars().size()).orElse(0);
Integer shuffle = Optional.ofNullable(refs.diffsByBracket(SHUFFLE, region).get()).map(diff -> diff.chars().size()).orElse(0);
JsonObject res = new JsonObject().put("2v2", twos).put("3v3", threes).put("rbg", rbgs).put("shuffle", shuffle);
Integer blitz = Optional.ofNullable(refs.diffsByBracket(BLITZ, region).get()).map(diff -> diff.chars().size()).orElse(0);
JsonObject res = new JsonObject().put("2v2", twos).put("3v3", threes).put("rbg", rbgs).put("shuffle", shuffle).put("blitz", blitz);
Cutoffs cutoffs = ladder.regionCutoffFromDb.get(region);
if (cutoffs != null) {
res.put("cutoffs", cutoffs.toJsonWithPredictions());
Expand Down

0 comments on commit f4b65d8

Please sign in to comment.