This commit is contained in:
2024-07-28 22:16:22 +02:00
parent f81299ed8d
commit e368496a82
2 changed files with 5 additions and 2 deletions
@@ -16,7 +16,7 @@ public class TLWMatchesManagerBase {
protected int season;
protected int league;
protected int numberOfMatchdays;
protected int matchesPerMatchday;
protected Integer matchesPerMatchday = null;
protected int ko;
protected int betKOType;
@@ -27,6 +27,7 @@ public class TLWMatchesManagerBase {
TippligaConfigProvider prov = new TippligaConfigProvider(this.season);
JSONObject config = prov.getTippligaConfig(configFileName);
this.numberOfMatchdays = ((Long) config.get("numberOfMatchdays")).intValue();
try { this.matchesPerMatchday = ((Long) config.get("matchesPerMatchday")).intValue(); } catch (Exception ignored) {}
this.matchdayConfig = (JSONArray) config.get("matchdayConfig");
this.ko = ((Long) config.get("ko")).intValue();
Long parsedBetKOType = (Long) config.get("betKOType");