Fix matches results updater

This commit is contained in:
Julian Arndt
2023-08-14 10:03:44 +02:00
parent 9fbe79831c
commit 4c33ba9383
9 changed files with 91 additions and 19 deletions
@@ -18,6 +18,7 @@ public class TLWMatchesManagerBase {
protected int numberOfMatchdays;
protected int matchesPerMatchday;
protected int ko;
protected int betKOType;
protected JSONArray matchdayConfig;
@@ -28,6 +29,8 @@ public class TLWMatchesManagerBase {
this.numberOfMatchdays = ((Long) config.get("numberOfMatchdays")).intValue();
this.matchdayConfig = (JSONArray) config.get("matchdayConfig");
this.ko = ((Long) config.get("ko")).intValue();
Long parsedBetKOType = (Long) config.get("betKOType");
this.betKOType = parsedBetKOType == null ? 1 : parsedBetKOType.intValue();
}
public static ArrayList<TLWMatch> getMatchesStartingFromSecondDay(ArrayList<TLWMatch> matches) {