From 26d5ccf4efc238f6d21398c15559d63b04742348 Mon Sep 17 00:00:00 2001 From: Sammers21 Date: Sun, 25 Feb 2024 23:39:33 +0300 Subject: [PATCH] releaseb update cutoffs even if the data is the same --- src/io/github/sammers/pla/logic/Calculator.java | 1 + src/io/github/sammers/pla/logic/Ladder.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/io/github/sammers/pla/logic/Calculator.java b/src/io/github/sammers/pla/logic/Calculator.java index b2558f43..027a3804 100644 --- a/src/io/github/sammers/pla/logic/Calculator.java +++ b/src/io/github/sammers/pla/logic/Calculator.java @@ -123,6 +123,7 @@ public static Integer calculateScoreMclassOld(Integer ladderPos) { * @return score */ public static Integer calculateMclassScoreBasedOnCutoff(Integer ladderPos, Integer numberOfR1Spot) { + log.trace("calculateMclassScoreBasedOnCutoff: ladderPos={}, numberOfR1Spot={}", ladderPos, numberOfR1Spot); List, Pair>> percentAndLinearRange = List.of( new Pair<>(new Pair<>(0, 1), new Pair<>(1000, 900)), new Pair<>(new Pair<>(1, 2), new Pair<>(900, 750)), diff --git a/src/io/github/sammers/pla/logic/Ladder.java b/src/io/github/sammers/pla/logic/Ladder.java index 274e1025..1950d7c6 100644 --- a/src/io/github/sammers/pla/logic/Ladder.java +++ b/src/io/github/sammers/pla/logic/Ladder.java @@ -571,6 +571,7 @@ public Completable newDataOnBracket(String bracket, String region, Snapshot newC .andThen(calcDiffs(bracket, region))) .andThen(Completable.defer(() -> upsertGamingHistory(bracket, diff))); } else { + newCharacters.applyCutoffs(bracket, regionCutoff.get(region)); log.info("Data for bracket {} are equal, not updating", bracket); return Completable.complete(); }