Add config for season 2025

This commit is contained in:
2024-07-28 21:10:18 +02:00
parent 163b313649
commit dabedcfbb1
15 changed files with 916 additions and 11 deletions

View File

@@ -0,0 +1,97 @@
[
{
"country": "Germany",
"name": "Bundesliga",
"league_id": 6375
},
{
"country": "Germany",
"name": "2. Bundesliga",
"league_id": 6387
},
{
"country": "Germany",
"name": "3. Liga",
"league_id": 6443
},
{
"country": "Germany",
"name": "Regionalliga - Bayern",
"league_id": 6472
},
{
"country": "Germany",
"name": "Regionalliga - SudWest",
"league_id": 6471
},
{
"country": "Germany",
"name": "U19 Bundesliga",
"league_id": 6572
},
{
"country": "Germany",
"name": "Frauen Bundesliga",
"league_id": 6510
},
{
"country": "Germany",
"name": "DFB Pokal",
"league_id": 6244
},
{
"country": "Germany",
"name": "Super Cup",
"league_id": 6247
},
{
"country": "England",
"name": "Premier League",
"league_id": 6280
},
{
"country": "Spain",
"name": "La Liga",
"league_id": 6284
},
{
"country": "Italy",
"name": "Serie A",
"league_id": 6374
},
{
"country": "France",
"name": "Ligue 1",
"league_id": 6315
},
{
"country": "Turkey",
"name": "Süper Lig",
"league_id": 6447
},
{
"country": "Netherlands",
"name": "Eredivisie",
"league_id": 6522
},
{
"country": "World",
"name": "UEFA Champions League",
"league_id": 6281
},
{
"country": "World",
"name": "UEFA Europa League",
"league_id": 6283
},
{
"country": "World",
"name": "UEFA Europa Conference League",
"league_id": 6282
},
{
"country": "World",
"name": "UEFA Super Cup",
"league_id": 6241
}
]

View File

@@ -1243,5 +1243,25 @@
"teamname": "Georgia",
"tippligaID": 751,
"apiFootballID": 1104
},
{
"teamname": "TuS Koblenz",
"tippligaID": 32,
"apiFootballID": 1648
},
{
"teamname": "Phönix Lübeck",
"tippligaID": 650,
"apiFootballID": 12831
},
{
"teamname": "Alemannia Aachen",
"tippligaID": 7,
"apiFootballID": 4259
},
{
"teamname": "Borussia Hildesheim",
"tippligaID": 651,
"apiFootballID": 12742
}
]

View File

@@ -31,7 +31,7 @@
},
{
"team_id": 2058,
"team_name": "Nicole (TG Rhön)",
"team_name": "Nicole",
"team_name_short": "Nicole"
},
{
@@ -278,5 +278,10 @@
"team_id": 2137,
"team_name": "Johannes",
"team_name_short": "Johannes"
},
{
"team_id": 2138,
"team_name": "TG ChatGPT",
"team_name_short": "ChatGPT"
}
]

View File

@@ -0,0 +1,435 @@
{
"numberOfMatchdays": 39,
"matchesPerMatchday": 12,
"pointMode": 4,
"pointsTendency": 1,
"pointsDifference": 2,
"pointsDirectHit": 3,
"ko": 0,
"matchdayConfig": [
{
"TLWMatchday": 1,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6387,
"leagueMatchday": 1,
"showTable": false
}
]
},
{
"TLWMatchday": 2,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6387,
"leagueMatchday": 2,
"showTable": false
}
]
},
{
"TLWMatchday": 3,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 1,
"showTable": true
}
]
},
{
"TLWMatchday": 4,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 2,
"showTable": true
}
]
},
{
"TLWMatchday": 5,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 3,
"showTable": true
}
]
},
{
"TLWMatchday": 6,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 4,
"showTable": true
}
]
},
{
"TLWMatchday": 7,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 5,
"showTable": true
}
]
},
{
"TLWMatchday": 8,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 6,
"showTable": true
}
]
},
{
"TLWMatchday": 9,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 7,
"showTable": true
}
]
},
{
"TLWMatchday": 10,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 8,
"showTable": true
}
]
},
{
"TLWMatchday": 11,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 9,
"showTable": true
}
]
},
{
"TLWMatchday": 12,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 10,
"showTable": true
}
]
},
{
"TLWMatchday": 13,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 11,
"showTable": true
}
]
},
{
"TLWMatchday": 14,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 12,
"showTable": true
}
]
},
{
"TLWMatchday": 15,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 13,
"showTable": true
}
]
},
{
"TLWMatchday": 16,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 14,
"showTable": true
}
]
},
{
"TLWMatchday": 17,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 15,
"showTable": true
}
]
},
{
"TLWMatchday": 18,
"matchesConfig": [
{
"type": "Placeholder",
"placeholderDatetime": "2024-12-26 18:00:00"
}
]
},
{
"TLWMatchday": 19,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 16,
"showTable": true
}
]
},
{
"TLWMatchday": 20,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 17,
"showTable": true
}
]
},
{
"TLWMatchday": 21,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 18,
"showTable": true
}
]
},
{
"TLWMatchday": 22,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 19,
"showTable": true
}
]
},
{
"TLWMatchday": 23,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 20,
"showTable": true
}
]
},
{
"TLWMatchday": 24,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 21,
"showTable": true
}
]
},
{
"TLWMatchday": 25,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 22,
"showTable": true
}
]
},
{
"TLWMatchday": 26,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 23,
"showTable": true
}
]
},
{
"TLWMatchday": 27,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 24,
"showTable": true
}
]
},
{
"TLWMatchday": 28,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 25,
"showTable": true
}
]
},
{
"TLWMatchday": 29,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 26,
"showTable": true
}
]
},
{
"TLWMatchday": 30,
"matchesConfig": [
{
"type": "Placeholder",
"placeholderDatetime": "2025-03-18 18:00:00"
}
]
},
{
"TLWMatchday": 31,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 27,
"showTable": true
}
]
},
{
"TLWMatchday": 32,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 28,
"showTable": true
}
]
},
{
"TLWMatchday": 33,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 29,
"showTable": true
}
]
},
{
"TLWMatchday": 34,
"matchesConfig": [
{
"type": "Placeholder",
"placeholderDatetime": "2025-04-15 18:00:00"
}
]
},
{
"TLWMatchday": 35,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 30,
"showTable": true
}
]
},
{
"TLWMatchday": 36,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 31,
"showTable": true
}
]
},
{
"TLWMatchday": 37,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 32,
"showTable": true
}
]
},
{
"TLWMatchday": 38,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 33,
"showTable": true
}
]
},
{
"TLWMatchday": 39,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 6375,
"leagueMatchday": 34,
"showTable": true
}
]
}
]
}

View File

@@ -0,0 +1,114 @@
{
"numberOfMatchdays": 5,
"matchesPerMatchday": 0,
"pointMode": 4,
"pointsTendency": 1,
"pointsDifference": 2,
"pointsDirectHit": 3,
"ko": 1,
"matchdayConfig": [
{
"TLWMatchday": 1,
"matchdayName": "1. Runde",
"numberOfMatches": 32,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 1,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2022-07-29 20:45:00"
}
]
},
{
"TLWMatchday": 2,
"numberOfMatches": 12,
"matchdayName": "2. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 2,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2022-10-18 18:30:00"
}
]
},
{
"TLWMatchday": 3,
"numberOfMatches": 12,
"matchdayName": "3. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 3,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-01-31 18:30:00"
}
]
},
{
"TLWMatchday": 4,
"numberOfMatches": 8,
"matchdayName": "Achtelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 4,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-04-04 18:30:00"
}
]
},
{
"TLWMatchday": 5,
"numberOfMatches": 4,
"matchdayName": "Viertelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 5,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 5,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 6,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 6,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-05-02 20:45:00"
}
]
}
]
}

View File

@@ -0,0 +1,118 @@
{
"numberOfMatchdays": 5,
"matchesPerMatchday": 0,
"pointMode": 4,
"pointsTendency": 1,
"pointsDifference": 2,
"pointsDirectHit": 3,
"ko": 1,
"matchdayConfig": [
{
"TLWMatchday": 1,
"matchdayName": "1. Runde",
"numberOfMatches": 32,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 1,
"showTable": true
}
]
},
{
"TLWMatchday": 2,
"numberOfMatches": 12,
"matchdayName": "2. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 2,
"showTable": true
}
]
},
{
"TLWMatchday": 3,
"numberOfMatches": 12,
"matchdayName": "3. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 3,
"showTable": true
}
]
},
{
"TLWMatchday": 4,
"numberOfMatches": 8,
"matchdayName": "Achtelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 4,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2024-06-29 18:00:00"
}
]
},
{
"TLWMatchday": 5,
"numberOfMatches": 4,
"matchdayName": "Viertelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 5,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2024-07-05 18:00:00"
}
]
},
{
"TLWMatchday": 6,
"numberOfMatches": 2,
"matchdayName": "Halbfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 6,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2024-07-09 21:00:00"
}
]
},
{
"TLWMatchday": 7,
"numberOfMatches": 1,
"matchdayName": "Finale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5858,
"leagueMatchday": 7,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2024-07-14 21:00:00"
}
]
}
]
}

View File

@@ -0,0 +1,114 @@
{
"numberOfMatchdays": 5,
"matchesPerMatchday": 0,
"pointMode": 4,
"pointsTendency": 1,
"pointsDifference": 2,
"pointsDirectHit": 3,
"ko": 1,
"matchdayConfig": [
{
"TLWMatchday": 1,
"matchdayName": "1. Runde",
"numberOfMatches": 32,
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 1,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2022-07-29 20:45:00"
}
]
},
{
"TLWMatchday": 2,
"numberOfMatches": 12,
"matchdayName": "2. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 2,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2022-10-18 18:30:00"
}
]
},
{
"TLWMatchday": 3,
"numberOfMatches": 12,
"matchdayName": "3. Spieltag",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 3,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-01-31 18:30:00"
}
]
},
{
"TLWMatchday": 4,
"numberOfMatches": 8,
"matchdayName": "Achtelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 4,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-04-04 18:30:00"
}
]
},
{
"TLWMatchday": 5,
"numberOfMatches": 4,
"matchdayName": "Viertelfinale",
"matchesConfig": [
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 5,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 5,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 6,
"showTable": true
},
{
"type": "AllMatchesOfMatchday",
"matchesLeague": 5275,
"leagueMatchday": 6,
"showTable": true
},
{
"type": "Placeholder",
"placeholderDatetime": "2023-05-02 20:45:00"
}
]
}
]
}

View File

@@ -4,6 +4,8 @@ import org.junit.Test;
public class APIFootballUpdaterTest {
int season = 2025;
@Test
public void checkErrorsTest() {
String exceededLimitDayError = "{\"api\":{\"results\":0,\"error\":\"You have reached the request limit for the day\"}}";
@@ -25,7 +27,7 @@ public class APIFootballUpdaterTest {
@Test
public void updateAllFixturesTest() {
APIFootballUpdater updater = new APIFootballUpdater();
// updater.updateAllFixtures();
updater.updateAllFixtures(season);
}
@Test
@@ -37,6 +39,6 @@ public class APIFootballUpdaterTest {
@Test
public void updateAllRoundsTest() {
APIFootballUpdater updater = new APIFootballUpdater();
// updater.updateAllRounds();
updater.updateAllRounds(season);
}
}

View File

@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchdaysCreatorTest {
int season = 2023;
int season = 2025;
@Test
public void getMatchdaysTippligaTest() {

View File

@@ -8,7 +8,7 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchesCreatorFootballTest {
int season = 2023;
int season = 2025;
@Test
public void getMatchesTest() {

View File

@@ -4,7 +4,7 @@ import org.junit.Test;
public class TLWMatchesCreatorTipperPokalTest {
int season = 2024;
int season = 2025;
@Test
public void getMatchesWTLPokalTest() {

View File

@@ -8,7 +8,7 @@ import static org.junit.Assert.assertEquals;
public class TLWMatchesCreatorTipperTest {
int season = 2024;
int season = 2025;
@Test
public void getMatchesTippliga1Test() {

View File

@@ -4,7 +4,7 @@ import org.junit.Test;
public class TLWMatchesUpdaterFootballTest {
int season = 2024;
int season = 2025;
@Test
public void getUpdateSqlTest1() {
TLWMatchesUpdaterFootball updater = new TLWMatchesUpdaterFootball(season, 1, "Tippliga");

View File

@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
public class TLWTeamsCreatorTest {
int season = 2024;
int season = 2025;
@Test
public void getTeamsTippligaFootball1Test() {

View File

@@ -6,8 +6,8 @@ public class MatchesListForumUpdaterTest {
@Test
public void updateAllLeaguesTest() {
MatchesListForumUpdater updater = new MatchesListForumUpdater(2022);
// updater.updateAllLeagues(2022);
MatchesListForumUpdater updater = new MatchesListForumUpdater(2025);
updater.updateAllLeagues(2025);
}
@Test