Skip to content

Commit

Permalink
releaseb update cutoffs even if the data is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Feb 25, 2024
1 parent 3a764b8 commit 26d5ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/io/github/sammers/pla/logic/Calculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pair<Integer, Integer>, Pair<Integer, Integer>>> percentAndLinearRange = List.of(
new Pair<>(new Pair<>(0, 1), new Pair<>(1000, 900)),
new Pair<>(new Pair<>(1, 2), new Pair<>(900, 750)),
Expand Down
1 change: 1 addition & 0 deletions src/io/github/sammers/pla/logic/Ladder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 26d5ccf

Please sign in to comment.