Skip to content

Commit

Permalink
releaseb back to prev ssn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammers21 committed Apr 24, 2024
1 parent 0c24748 commit deec31f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/github/sammers/pla/blizzard/BlizzardAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -260,7 +260,7 @@ public Single<Realms> realms(String region) {
}

public Single<Cutoffs> cutoffs(String region) {
return cutoffs(region, CURRENT_PVP_SEASON_ID - 1);
return cutoffs(region, CURRENT_PVP_SEASON_ID);
}

public Single<Cutoffs> cutoffs(String region, Integer pvpSsnId) {
Expand Down
3 changes: 3 additions & 0 deletions src/io/github/sammers/pla/logic/Ladder.java
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ private Completable loadLast(String bracket, String region) {

public Completable calcDiffs(String bracket, String region) {
List<Maybe<Snapshot>> 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),
Expand Down

0 comments on commit deec31f

Please sign in to comment.