From deec31f1df95d7dc209b0d8875c4fd634f3fdc3a Mon Sep 17 00:00:00 2001 From: Sammers21 Date: Wed, 24 Apr 2024 19:11:00 +0300 Subject: [PATCH] releaseb back to prev ssn --- src/io/github/sammers/pla/blizzard/BlizzardAPI.java | 4 ++-- src/io/github/sammers/pla/logic/Ladder.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/io/github/sammers/pla/blizzard/BlizzardAPI.java b/src/io/github/sammers/pla/blizzard/BlizzardAPI.java index e2ba1476..f5b292c1 100644 --- a/src/io/github/sammers/pla/blizzard/BlizzardAPI.java +++ b/src/io/github/sammers/pla/blizzard/BlizzardAPI.java @@ -36,7 +36,7 @@ public class BlizzardAPI { public static final String AUTH_URL = "https://oauth.battle.net/token"; public static String LOCALE = "en_US"; - public static final Integer CURRENT_PVP_SEASON_ID = 37; + public static final Integer CURRENT_PVP_SEASON_ID = 36; private static final Logger log = LoggerFactory.getLogger(BlizzardAPI.class); private final String clientSecret; private final WebClient webClient; @@ -260,7 +260,7 @@ public Single realms(String region) { } public Single cutoffs(String region) { - return cutoffs(region, CURRENT_PVP_SEASON_ID - 1); + return cutoffs(region, CURRENT_PVP_SEASON_ID); } public Single cutoffs(String region, Integer pvpSsnId) { diff --git a/src/io/github/sammers/pla/logic/Ladder.java b/src/io/github/sammers/pla/logic/Ladder.java index 678f486f..9e1ba805 100644 --- a/src/io/github/sammers/pla/logic/Ladder.java +++ b/src/io/github/sammers/pla/logic/Ladder.java @@ -585,6 +585,9 @@ private Completable loadLast(String bracket, String region) { public Completable calcDiffs(String bracket, String region) { List> maybes = List.of( + db.getMinsAgo(bracket, region, 60 * 24 * 4), + db.getMinsAgo(bracket, region, 60 * 24 * 2), + db.getMinsAgo(bracket, region, 60 * 24), db.getMinsAgo(bracket, region, 60 * 12), db.getMinsAgo(bracket, region, 60 * 8), db.getMinsAgo(bracket, region, 60 * 6),