Compare commits
233
Commits
main
..
c698008b0c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c698008b0c | ||
|
|
feaaa3fc83 | ||
|
|
988c7418c4 | ||
|
|
c07a155ecb | ||
|
|
062160e09e | ||
|
|
26ba216a32 | ||
|
|
84873c4296 | ||
|
|
054588e40c | ||
|
|
7c46d81092 | ||
|
|
37ddbef81c | ||
|
|
56da309644 | ||
|
|
3d472f4eaa | ||
|
|
99fa13d04c | ||
|
|
8b946bdd39 | ||
|
|
01413eb407 | ||
|
|
05bbd43236 | ||
|
|
9dcd7f94c7 | ||
|
|
559d786c7e | ||
|
|
f7110563cf | ||
|
|
f6d014b776 | ||
|
|
786c58166e | ||
|
|
163b211b02 | ||
|
|
f0f5d67b8b | ||
|
|
64ff8ddff8 | ||
|
|
6866d45400 | ||
|
|
03527d0d71 | ||
|
|
9261d4106a | ||
|
|
62cad30c48 | ||
|
|
ba2dae8906 | ||
|
|
51937b027f | ||
|
|
42b9c6efc4 | ||
|
|
3b90ca0d42 | ||
|
|
142b2f4ed7 | ||
|
|
0405a3d928 | ||
|
|
09e15afe62 | ||
|
|
d7d517eab8 | ||
|
|
edf7d60944 | ||
|
|
843056a8f9 | ||
|
|
71313fc27d | ||
|
|
ecab78527a | ||
|
|
d4e924cbc2 | ||
|
|
ffa6821549 | ||
|
|
b27648885d | ||
|
|
9ac3a9455f | ||
|
|
c74527d857 | ||
|
|
e368496a82 | ||
|
|
f81299ed8d | ||
|
|
c70bfe4b11 | ||
|
|
017a33f178 | ||
|
|
457393d033 | ||
|
|
7fa1015fdc | ||
|
|
2bf8ed712d | ||
|
|
43e04bd177 | ||
|
|
6dd6c231a2 | ||
|
|
93b081b840 | ||
|
|
b9b6e04ff8 | ||
|
|
75c5eb08ca | ||
|
|
393ce0fb78 | ||
|
|
00444221f4 | ||
|
|
3628d2eb51 | ||
|
|
ce014dfc57 | ||
|
|
5c0e86fca6 | ||
|
|
7af8142c62 | ||
|
|
ba00730bc5 | ||
|
|
87fcd64337 | ||
|
|
f4905606df | ||
|
|
056418c0f2 | ||
|
|
a6c0c7771d | ||
|
|
05943214d8 | ||
|
|
2dba172eec | ||
|
|
c0c5790311 | ||
|
|
ee28cac822 | ||
|
|
8675ac44b1 | ||
|
|
3876aae4a6 | ||
|
|
c6bd71d4a1 | ||
|
|
ffc50957c1 | ||
|
|
7106fdd7ab | ||
|
|
8f62a99ed8 | ||
|
|
4c33ba9383 | ||
|
|
9fbe79831c | ||
|
|
b4e07359c0 | ||
|
|
4cd5a6b014 | ||
|
|
c7d4891cfc | ||
|
|
e9e994de87 | ||
|
|
408559e494 | ||
|
|
b1d520b3d7 | ||
|
|
f6c34e0fd6 | ||
|
|
cc87104a0d | ||
|
|
0f67a1de05 | ||
|
|
2a5c652946 | ||
|
|
8cc7602709 | ||
|
|
a06a864dbc | ||
|
|
468a2a59e1 | ||
|
|
78446ea1d8 | ||
|
|
13f87087fa | ||
|
|
df19f8c255 | ||
|
|
8eef7d8c0a | ||
|
|
691b995500 | ||
|
|
21e1b783a7 | ||
|
|
c0d6e64aaa | ||
|
|
94cfb97a56 | ||
|
|
356b40c49d | ||
|
|
c93ee08cae | ||
|
|
2a494a4caf | ||
|
|
25f112d86a | ||
|
|
acc4664b2a | ||
|
|
f59bcd8ea9 | ||
|
|
b1a9195181 | ||
|
|
08d2b897ba | ||
|
|
c9e6ec42cb | ||
|
|
1cdc31c972 | ||
|
|
e5d0e65f2f | ||
|
|
b8d556d7d2 | ||
|
|
4bb0d423f0 | ||
|
|
bfa2be5c9d | ||
|
|
7f84747dd5 | ||
|
|
c118722fe9 | ||
|
|
e62badbc08 | ||
|
|
428fd0b5e3 | ||
|
|
d6edce1625 | ||
|
|
e8810202fa | ||
|
|
3371962300 | ||
|
|
76931cd7c1 | ||
|
|
27ce999c4b | ||
|
|
f152cce388 | ||
|
|
cb85968be4 | ||
|
|
f5b2bbb452 | ||
|
|
13d54a4752 | ||
|
|
71b39a2df3 | ||
|
|
88f10ebd41 | ||
|
|
bdb08f5b71 | ||
|
|
f5ef53aefd | ||
|
|
6ca8693258 | ||
|
|
b5fb2d6842 | ||
|
|
0c63d45dd6 | ||
|
|
61d6597578 | ||
|
|
c76a972286 | ||
|
|
34f906f622 | ||
|
|
e7a74694ba | ||
|
|
13effb5d59 | ||
|
|
ea2697e114 | ||
|
|
8ba07bab8e | ||
|
|
6099b55f6c | ||
|
|
363dd073e8 | ||
|
|
d9616956ee | ||
|
|
71546bd499 | ||
|
|
67ea5c7d97 | ||
|
|
f349b92973 | ||
|
|
f9c06971f0 | ||
|
|
c833f373bd | ||
|
|
54f1129021 | ||
|
|
0d640bd61d | ||
|
|
b76e125d31 | ||
|
|
2f0385f1f5 | ||
|
|
1c99d0a468 | ||
|
|
952f869f59 | ||
|
|
c959d62116 | ||
|
|
089b8eba08 | ||
|
|
af28e5cb6f | ||
|
|
287b96f03b | ||
|
|
76db3ba9d3 | ||
|
|
5ef306c853 | ||
|
|
3945b471b2 | ||
|
|
f8b53cfe52 | ||
|
|
824e0f35be | ||
|
|
d54a7089c8 | ||
|
|
14b45f638d | ||
|
|
70db634f10 | ||
|
|
cbcaeda25f | ||
|
|
23ad175f98 | ||
|
|
6fe026ee74 | ||
|
|
4f638c3111 | ||
|
|
0578c6ecbc | ||
|
|
221a2157cf | ||
|
|
50ba1198c7 | ||
|
|
4bd7af39a8 | ||
|
|
37030a67ec | ||
|
|
b100e4e2e8 | ||
|
|
a6145eed64 | ||
|
|
dbd2eb1737 | ||
|
|
27193999fc | ||
|
|
87c0383db8 | ||
|
|
dd9c8cc0af | ||
|
|
c1e8c901cd | ||
|
|
780bcf0c98 | ||
|
|
341f914b35 | ||
|
|
10e6348dcf | ||
|
|
f1ce35dcdf | ||
|
|
c53511939d | ||
|
|
5474e2a4d1 | ||
|
|
7367c5c86f | ||
|
|
2fcee30597 | ||
|
|
8cfb2a325a | ||
|
|
5862a99d73 | ||
|
|
fbbac7fdb0 | ||
|
|
7e09e96cb1 | ||
|
|
d42edcf01c | ||
|
|
2f411aae67 | ||
|
|
d54e8991d7 | ||
|
|
7f98b928bd | ||
|
|
7d9fc5aac1 | ||
|
|
53af82a429 | ||
|
|
3a5df3cae6 | ||
|
|
57baee27bd | ||
|
|
1e9ee8127c | ||
|
|
306bf69107 | ||
|
|
d8e70fb1b0 | ||
|
|
6579d3c003 | ||
|
|
72a6140925 | ||
|
|
81b68b27f7 | ||
|
|
2f66771b0d | ||
|
|
c7e9cd092f | ||
|
|
b09d7ed474 | ||
|
|
cdb1f92893 | ||
|
|
1b7bcbf9b0 | ||
|
|
93cbcb75a4 | ||
|
|
16d5baabef | ||
|
|
91e5ed50b7 | ||
|
|
126b9778c0 | ||
|
|
cb01b7bcb7 | ||
|
|
e4186457e2 | ||
|
|
ae2be9c425 | ||
|
|
d8af0b3d6c | ||
|
|
f22f9a929b | ||
|
|
bce0f3800c | ||
|
|
8828f4477a | ||
|
|
5b4667e8ae | ||
|
|
557cd59c8f | ||
|
|
e57f79c18b | ||
|
|
babfe66872 | ||
|
|
9c88c28151 | ||
|
|
a484010285 | ||
|
|
283efc775b |
Vendored
+7
-15
@@ -10,7 +10,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "APIFootballUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode APIFootballUpdater --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "MatchesCreatorFootball", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode MatchesCreatorFootball --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "MatchesUpdaterFootball", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode MatchesUpdaterFootball --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "MatchdaysUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode MatchdaysUpdater --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "MatchesResultsUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode MatchesResultsUpdater --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "MatchesListGistUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode MatchesListGistUpdater --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
@@ -58,15 +58,7 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mainClass": "de.jeyp91.App",
|
"mainClass": "de.jeyp91.App",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"args": ["--mode", "TeamsUpdater", "--season", "2027", "--league", "1", "--configFile", "Tippliga"]
|
"args": " --mode TeamsUpdater --season 2026 --league 49 --configFile WM-Tippspiel"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "java",
|
|
||||||
"name": "SeasonPreparation",
|
|
||||||
"request": "launch",
|
|
||||||
"mainClass": "de.jeyp91.App",
|
|
||||||
"envFile": "${workspaceFolder}/.env",
|
|
||||||
"args": ["--mode", "SeasonPreparation", "--season", "2027", "--league", "0", "--configFile", "Dummy"]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Vendored
+1
-3
@@ -5,6 +5,4 @@
|
|||||||
"envFile": "${workspaceFolder}/.env"
|
"envFile": "${workspaceFolder}/.env"
|
||||||
},
|
},
|
||||||
"java.debug.settings.onBuildFailureProceed": true,
|
"java.debug.settings.onBuildFailureProceed": true,
|
||||||
"jdk.jdkhome": "/Users/julian/.local/share/mise/installs/java/22.0.2",
|
}
|
||||||
"java.debug.settings.console": "internalConsole"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,26 +37,6 @@ dependencies {
|
|||||||
testImplementation 'org.testng:testng:7.10.2'
|
testImplementation 'org.testng:testng:7.10.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
def envFile = file('.env')
|
|
||||||
if (envFile.exists()) {
|
|
||||||
def envVars = [:]
|
|
||||||
envFile.readLines().each { line ->
|
|
||||||
def trimmed = line.trim()
|
|
||||||
if (trimmed && !trimmed.startsWith('#')) {
|
|
||||||
def parts = trimmed.split('=', 2)
|
|
||||||
if (parts.size() == 2) {
|
|
||||||
def key = parts[0].trim()
|
|
||||||
def value = parts[1].trim()
|
|
||||||
if (value.startsWith('"') && value.endsWith('"')) {
|
|
||||||
value = value.substring(1, value.length() - 1)
|
|
||||||
}
|
|
||||||
envVars[key] = value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
test { environment envVars }
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes(
|
attributes(
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode APIFootballUpdater --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode APIFootballUpdater --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchesListGistUpdater --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchesListGistUpdater --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in APIFootballUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 49 --configFile WM-Tippspiel >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 49 --configFile WM-Tippspiel >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 49 --configFile WM-Tippspiel >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 49 --configFile WM-Tippspiel >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in LigaCupUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 47 --configFile Relegation >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 47 --configFile Relegation >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 47 --configFile Relegation >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 47 --configFile Relegation >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in RelegationUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 45 --configFile Supercup >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 45 --configFile Supercup >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 45 --configFile Supercup >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 45 --configFile Supercup >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in SupercupUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 2 --configFile Tippliga >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 2 --configFile Tippliga >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 2 --configFile Tippliga >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 2 --configFile Tippliga >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in TippligaUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
echo "Output: ${outputString}"
|
echo "Output: ${outputString}"
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ pipeline {
|
|||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 48 --configFile WTL-Pokal >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchdaysUpdater --season ${season} --league 48 --configFile WTL-Pokal >> log.txt 2>&1"
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 48 --configFile WTL-Pokal >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode TeamsUpdater --season ${season} --league 48 --configFile WTL-Pokal >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in WTLPokalUpdater!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ pipeline {
|
|||||||
try {
|
try {
|
||||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode WhatsAppNotifier --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode WhatsAppNotifier --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
telegramSendManual("TLW-Database-Tool crashed in WhatsAppReminder!")
|
telegramSendManual("TLW-Database-Tool crashed!")
|
||||||
}
|
}
|
||||||
String outputString = readFile 'log.txt'
|
String outputString = readFile 'log.txt'
|
||||||
if(outputString != "") {
|
if(outputString != "") {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import de.jeyp91.tippliga.TLWMatchesResultsUpdater;
|
|||||||
import de.jeyp91.tippliga.TLWMatchesUpdaterFootball;
|
import de.jeyp91.tippliga.TLWMatchesUpdaterFootball;
|
||||||
import de.jeyp91.tippliga.TLWTeamsUpdater;
|
import de.jeyp91.tippliga.TLWTeamsUpdater;
|
||||||
import de.jeyp91.tippligaforum.MatchesListForumUpdater;
|
import de.jeyp91.tippligaforum.MatchesListForumUpdater;
|
||||||
import de.jeyp91.tippligaforum.SeasonForumPostsCreator;
|
|
||||||
import de.jeyp91.tippligaforum.TippligaConfigProvider;
|
import de.jeyp91.tippligaforum.TippligaConfigProvider;
|
||||||
import de.jeyp91.tippligaforum.TippligaSQLConnector;
|
import de.jeyp91.tippligaforum.TippligaSQLConnector;
|
||||||
import de.jeyp91.whatsapp.WhatsAppNotifier;
|
import de.jeyp91.whatsapp.WhatsAppNotifier;
|
||||||
@@ -70,10 +69,6 @@ public class App {
|
|||||||
MatchesListForumUpdater matchesListForumUpdater = new MatchesListForumUpdater();
|
MatchesListForumUpdater matchesListForumUpdater = new MatchesListForumUpdater();
|
||||||
matchesListForumUpdater.updateAllLeagues(season);
|
matchesListForumUpdater.updateAllLeagues(season);
|
||||||
}
|
}
|
||||||
case "SeasonPreparation" -> {
|
|
||||||
SeasonForumPostsCreator creator = new SeasonForumPostsCreator(season);
|
|
||||||
creator.createAllPosts();
|
|
||||||
}
|
|
||||||
case "PostChecksum" -> {
|
case "PostChecksum" -> {
|
||||||
TippligaConfigProvider configProvider = new TippligaConfigProvider(season);
|
TippligaConfigProvider configProvider = new TippligaConfigProvider(season);
|
||||||
String checksum = configProvider.getChecksumOfConfigPost(configFile);
|
String checksum = configProvider.getChecksumOfConfigPost(configFile);
|
||||||
@@ -101,7 +96,7 @@ public class App {
|
|||||||
|
|
||||||
parser.addArgument("-m", "--mode")
|
parser.addArgument("-m", "--mode")
|
||||||
.dest("mode")
|
.dest("mode")
|
||||||
.choices("MatchdaysUpdater", "MatchesCreatorFootball", "MatchesUpdaterFootball", "MatchesResultsUpdater", "TeamsUpdater", "APIFootballUpdater", "MatchesListGistUpdater", "PostChecksum", "WhatsAppNotifier", "SeasonPreparation")
|
.choices("MatchdaysUpdater", "MatchesCreatorFootball", "MatchesUpdaterFootball", "MatchesResultsUpdater", "TeamsUpdater", "APIFootballUpdater", "MatchesListGistUpdater", "PostChecksum", "WhatsAppNotifier")
|
||||||
.help("")
|
.help("")
|
||||||
.required(true)
|
.required(true)
|
||||||
.type(String.class);
|
.type(String.class);
|
||||||
|
|||||||
@@ -117,18 +117,6 @@ public class TLWMatch extends BaseMatch{
|
|||||||
this.matchDatetime = matchDatetime;
|
this.matchDatetime = matchDatetime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLWMatch(int season, int league, int matchday, int matchNo, int status, int koMatch, String formulaHome, String formulaGuest, String matchDatetime) {
|
|
||||||
this.season = season;
|
|
||||||
this.matchday = matchday;
|
|
||||||
this.league = league;
|
|
||||||
this.matchNo = matchNo;
|
|
||||||
this.status = status;
|
|
||||||
this.koMatch = koMatch;
|
|
||||||
this.formulaHome = formulaHome;
|
|
||||||
this.formulaGuest = formulaGuest;
|
|
||||||
this.matchDatetime = matchDatetime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TLWMatch(int season, int league, int matchday, int matchNo, int teamIdHome, int teamIdGuest, String matchDatetime, int koMatch) {
|
public TLWMatch(int season, int league, int matchday, int matchNo, int teamIdHome, int teamIdGuest, String matchDatetime, int koMatch) {
|
||||||
this.season = season;
|
this.season = season;
|
||||||
this.matchday = matchday;
|
this.matchday = matchday;
|
||||||
@@ -191,11 +179,19 @@ public class TLWMatch extends BaseMatch{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getFormulaHome() {
|
public String getFormulaHome() {
|
||||||
return this.formulaHome != null ? this.formulaHome : "D";
|
String formula = "D";
|
||||||
|
if (this.formulaHome != null) {
|
||||||
|
formula = this.formulaHome;
|
||||||
|
}
|
||||||
|
return "'" + formula + "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFormulaGuest() {
|
public String getFormulaGuest() {
|
||||||
return this.formulaGuest != null ? this.formulaGuest : "D";
|
String formula = "D";
|
||||||
|
if (this.formulaGuest != null) {
|
||||||
|
formula = this.formulaGuest;
|
||||||
|
}
|
||||||
|
return "'" + formula + "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSQLQueryInsert() {
|
public String getSQLQueryInsert() {
|
||||||
@@ -222,8 +218,8 @@ public class TLWMatch extends BaseMatch{
|
|||||||
this.status + ", " +
|
this.status + ", " +
|
||||||
nullToSqlEmptyString(this.matchDatetime) + ", " +
|
nullToSqlEmptyString(this.matchDatetime) + ", " +
|
||||||
nullToSqlEmptyString(this.groupId) + ", " +
|
nullToSqlEmptyString(this.groupId) + ", " +
|
||||||
"'" + getFormulaHome() + "'" + ", " +
|
getFormulaHome() + ", " +
|
||||||
"'" + getFormulaGuest() + "'" + ", " +
|
getFormulaGuest() + ", " +
|
||||||
nullToSqlEmptyString(this.koMatch) + ", " +
|
nullToSqlEmptyString(this.koMatch) + ", " +
|
||||||
nullToSqlEmptyString(this.goalsOvertimeHome) + ", " +
|
nullToSqlEmptyString(this.goalsOvertimeHome) + ", " +
|
||||||
nullToSqlEmptyString(this.goalsOvertimeGuest) + ", " +
|
nullToSqlEmptyString(this.goalsOvertimeGuest) + ", " +
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class TLWMatchdaysCreator {
|
|||||||
this.season = season;
|
this.season = season;
|
||||||
this.league = league;
|
this.league = league;
|
||||||
|
|
||||||
TLWMatchesCreatorFootball matchesCreator = new TLWMatchesCreatorFootball(season, league, configPath);
|
TLWMatchesCreatorFootball matchesCreator = new TLWMatchesCreatorFootball(season, 1, configPath);
|
||||||
this.matches = matchesCreator.getMatches();
|
this.matches = matchesCreator.getMatches();
|
||||||
|
|
||||||
TippligaConfigProvider prov = new TippligaConfigProvider(season);
|
TippligaConfigProvider prov = new TippligaConfigProvider(season);
|
||||||
|
|||||||
@@ -69,20 +69,6 @@ public class TLWMatchesCreatorFootball extends TLWMatchesCreatorBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add PlaceholderSingleMatch matches
|
|
||||||
for (Object matchesConfigObject : matchesConfig) {
|
|
||||||
JSONObject singleMatchConfig = (JSONObject) matchesConfigObject;
|
|
||||||
if(singleMatchConfig.get("type").equals("PlaceholderSingleMatch")) {
|
|
||||||
String formulaHome = (String) singleMatchConfig.get("formulaHome");
|
|
||||||
String formulaGuest = (String) singleMatchConfig.get("formulaGuest");
|
|
||||||
String matchDatetime = (String) singleMatchConfig.get("placeholderDatetime");
|
|
||||||
int matchNo = this.nextMatchNo;
|
|
||||||
this.nextMatchNo++;
|
|
||||||
this.TLWMatches.add(new TLWMatch(this.season, this.league, TLWMatchday, matchNo, 0, this.ko, formulaHome, formulaGuest, matchDatetime));
|
|
||||||
matchdayMatchCounter++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add empty missing matches
|
// Add empty missing matches
|
||||||
int matchesPerMatchdayTemp = 0;
|
int matchesPerMatchdayTemp = 0;
|
||||||
if(this.matchesPerMatchday != 0) {
|
if(this.matchesPerMatchday != 0) {
|
||||||
|
|||||||
@@ -44,10 +44,6 @@ public class TLWMatchesUpdaterFootball extends TLWMatchesManagerBase {
|
|||||||
|
|
||||||
ArrayList<APIFootballMatch> apiFootballMatches = apiFootballMatchesProvider.getAPIFootballMatchesFromConfig((JSONObject) singleMatchdayConfig);
|
ArrayList<APIFootballMatch> apiFootballMatches = apiFootballMatchesProvider.getAPIFootballMatchesFromConfig((JSONObject) singleMatchdayConfig);
|
||||||
|
|
||||||
if(apiFootballMatches.isEmpty()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
ArrayList<TLWMatch> tlwMatchesOriginalMatchday = tippligaSQLConnector.getMatches(String.valueOf(this.season), String.valueOf(this.league), String.valueOf(tlwMatchday));
|
ArrayList<TLWMatch> tlwMatchesOriginalMatchday = tippligaSQLConnector.getMatches(String.valueOf(this.season), String.valueOf(this.league), String.valueOf(tlwMatchday));
|
||||||
ArrayList<TLWMatch> tlwMatchesUpdatedMatchday = new ArrayList<>();
|
ArrayList<TLWMatch> tlwMatchesUpdatedMatchday = new ArrayList<>();
|
||||||
for (TLWMatch match : tlwMatchesOriginalMatchday) {
|
for (TLWMatch match : tlwMatchesOriginalMatchday) {
|
||||||
@@ -62,7 +58,9 @@ public class TLWMatchesUpdaterFootball extends TLWMatchesManagerBase {
|
|||||||
LocalDateTime firstMatchOriginal = TLWMatchesManagerBase.getFirstMatchtimeTLW(tlwMatchesOriginalMatchday);
|
LocalDateTime firstMatchOriginal = TLWMatchesManagerBase.getFirstMatchtimeTLW(tlwMatchesOriginalMatchday);
|
||||||
LocalDateTime firstMatchUpdated = TLWMatchesManagerBase.getFirstMatchtimeAPIFootball(apiFootballMatches);
|
LocalDateTime firstMatchUpdated = TLWMatchesManagerBase.getFirstMatchtimeAPIFootball(apiFootballMatches);
|
||||||
|
|
||||||
if(now.isBefore(firstMatchOriginal) && now.isBefore(firstMatchUpdated)) {
|
if(apiFootballMatches.size() > 0
|
||||||
|
&& now.isBefore(firstMatchOriginal)
|
||||||
|
&& now.isBefore(firstMatchUpdated)) {
|
||||||
addMissingMatches(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
addMissingMatches(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
||||||
updateMatchDateTimes(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
updateMatchDateTimes(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
||||||
updateShowTable(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
updateShowTable(tlwMatchesUpdatedMatchday, apiFootballMatches);
|
||||||
@@ -195,15 +193,9 @@ public class TLWMatchesUpdaterFootball extends TLWMatchesManagerBase {
|
|||||||
// update empty match
|
// update empty match
|
||||||
if(!done) {
|
if(!done) {
|
||||||
for (TLWMatch tlwMatch : tlwMatches) {
|
for (TLWMatch tlwMatch : tlwMatches) {
|
||||||
Integer teamIdHome = tlwMatch.getTeamIdHome();
|
if (tlwMatch.getTeamIdHome() == 0 && tlwMatch.getTeamIdGuest() == 0
|
||||||
Integer teamIdGuest = tlwMatch.getTeamIdGuest();
|
&& (Objects.equals(tlwMatch.getFormulaHome(), "") || Objects.equals(tlwMatch.getFormulaHome(), "D"))
|
||||||
String formulaHome = tlwMatch.getFormulaHome();
|
&& (Objects.equals(tlwMatch.getFormulaGuest(), "") || Objects.equals(tlwMatch.getFormulaGuest(), "D"))
|
||||||
String formulaGuest = tlwMatch.getFormulaGuest();
|
|
||||||
if (
|
|
||||||
(Objects.equals(teamIdHome, 0) || Objects.equals(teamIdHome, null))
|
|
||||||
&& (Objects.equals(teamIdGuest, 0) || Objects.equals(teamIdGuest, null))
|
|
||||||
&& (Objects.equals(formulaHome, "") || Objects.equals(formulaHome, "D"))
|
|
||||||
&& (Objects.equals(formulaGuest, "") || Objects.equals(formulaGuest, "D"))
|
|
||||||
) {
|
) {
|
||||||
tlwMatch.updateMatch(missingMatch);
|
tlwMatch.updateMatch(missingMatch);
|
||||||
done = true;
|
done = true;
|
||||||
|
|||||||
@@ -1,137 +0,0 @@
|
|||||||
package de.jeyp91.tippligaforum;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
public class SeasonForumPostsCreator {
|
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(SeasonForumPostsCreator.class);
|
|
||||||
private static final String EMPTY_POST_CONTENT = "[code][/code]";
|
|
||||||
|
|
||||||
private static final String[] CONFIG_POSTS = {
|
|
||||||
"Supercup Tipper",
|
|
||||||
"WTL-Pokal Tipper",
|
|
||||||
"2. Tippliga Tipper",
|
|
||||||
"1. Tippliga Tipper",
|
|
||||||
"Relegation",
|
|
||||||
"Supercup",
|
|
||||||
"WTL-Pokal",
|
|
||||||
"Tippliga"
|
|
||||||
};
|
|
||||||
|
|
||||||
private static final String[] MATCH_LIST_POSTS = {
|
|
||||||
"World UEFA Super Cup",
|
|
||||||
"World UEFA Europa Conference League",
|
|
||||||
"World UEFA Europa League",
|
|
||||||
"World UEFA Champions League",
|
|
||||||
"Austria Bundesliga",
|
|
||||||
"Portugal Primeira Liga",
|
|
||||||
"Netherlands Eredivisie",
|
|
||||||
"Turkey Süper Lig",
|
|
||||||
"France Ligue 1",
|
|
||||||
"Italy Serie A",
|
|
||||||
"Spain La Liga",
|
|
||||||
"England Premier League",
|
|
||||||
"Germany Super Cup",
|
|
||||||
"Germany Frauen Bundesliga",
|
|
||||||
"Germany U19 Bundesliga",
|
|
||||||
"Germany Regionalliga - SudWest",
|
|
||||||
"Germany Regionalliga - Bayern",
|
|
||||||
"Germany 3. Liga",
|
|
||||||
"Germany 2. Bundesliga",
|
|
||||||
"Germany Bundesliga",
|
|
||||||
"Germany DFB Pokal"
|
|
||||||
};
|
|
||||||
|
|
||||||
private final int season;
|
|
||||||
private final TippligaWebsiteConnector connector;
|
|
||||||
private final TippligaSQLConnector sqlConnector;
|
|
||||||
|
|
||||||
public SeasonForumPostsCreator(int season) {
|
|
||||||
this.season = season;
|
|
||||||
try {
|
|
||||||
this.connector = new TippligaWebsiteConnector();
|
|
||||||
} catch (IOException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
this.sqlConnector = TippligaSQLConnector.getInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void createAllPosts() {
|
|
||||||
Integer adminForumId = sqlConnector.getForumId("Admin");
|
|
||||||
if (adminForumId == null) {
|
|
||||||
logger.error("Forum 'Admin' not found. Aborting.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Integer tippligaConfigForumId = sqlConnector.getForumId("Tippliga-Config", adminForumId);
|
|
||||||
if (tippligaConfigForumId == null) {
|
|
||||||
logger.error("Forum 'Tippliga-Config' not found. Aborting.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Integer seasonForumId = sqlConnector.getForumId(String.valueOf(season), tippligaConfigForumId);
|
|
||||||
if (seasonForumId == null) {
|
|
||||||
logger.error("Forum '" + season + "' not found under Tippliga-Config. Aborting.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Integer ligenForumId = sqlConnector.getForumId("Ligen", seasonForumId);
|
|
||||||
if (ligenForumId == null) {
|
|
||||||
logger.error("Forum 'Ligen' not found under " + season + ". Aborting.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
createConfigPosts(seasonForumId);
|
|
||||||
createMatchListPosts(ligenForumId);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createConfigPosts(int seasonForumId) {
|
|
||||||
logger.info("Creating config posts in forum " + season + "...");
|
|
||||||
for (String subject : CONFIG_POSTS) {
|
|
||||||
if (postExists(seasonForumId, subject)) {
|
|
||||||
logger.info("Config post '" + subject + "' already exists. Skipping.");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
boolean success = connector.createPost(seasonForumId, subject, EMPTY_POST_CONTENT);
|
|
||||||
if (success) {
|
|
||||||
logger.info("Created config post: " + subject);
|
|
||||||
} else {
|
|
||||||
logger.error("Failed to create config post: " + subject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createMatchListPosts(int ligenForumId) {
|
|
||||||
logger.info("Creating match list posts in " + season + " > Ligen...");
|
|
||||||
for (String subject : MATCH_LIST_POSTS) {
|
|
||||||
if (postExists(ligenForumId, subject)) {
|
|
||||||
logger.info("Match list post '" + subject + "' already exists. Skipping.");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
boolean success = connector.createPost(ligenForumId, subject, EMPTY_POST_CONTENT);
|
|
||||||
if (success) {
|
|
||||||
logger.info("Created match list post: " + subject);
|
|
||||||
} else {
|
|
||||||
logger.error("Failed to create match list post: " + subject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean postExists(int forumId, String subject) {
|
|
||||||
String query = "SELECT COUNT(*) FROM phpbb_posts WHERE forum_id = " + forumId + " AND post_subject = '" + subject + "'";
|
|
||||||
ResultSet rset = sqlConnector.executeQuery(query);
|
|
||||||
try {
|
|
||||||
if (rset != null && rset.next()) {
|
|
||||||
return rset.getInt(1) > 0;
|
|
||||||
}
|
|
||||||
} catch (SQLException e) {
|
|
||||||
logger.error("Error checking if post exists", e);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -218,69 +218,6 @@ public class TippligaWebsiteConnector {
|
|||||||
this.lastFormToken = matcher.group(2);
|
this.lastFormToken = matcher.group(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean createPost(int forumId, String subject, String message) {
|
|
||||||
String url = "https://tippliga-wuerzburg.de/posting.php?mode=post&f=" + forumId;
|
|
||||||
|
|
||||||
HttpRequest req = HttpRequest.newBuilder()
|
|
||||||
.uri(URI.create(url))
|
|
||||||
.GET().build();
|
|
||||||
|
|
||||||
String reqBody = "";
|
|
||||||
try {
|
|
||||||
TimeUnit.SECONDS.sleep(1);
|
|
||||||
reqBody = client.send(req, HttpResponse.BodyHandlers.ofString()).body();
|
|
||||||
} catch (IOException | InterruptedException e) {
|
|
||||||
logger.error("Failed to fetch posting form", e);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Pattern pattern = Pattern.compile("^[\\s\\S]*<input type=\"hidden\" name=\"creation_time\" value=\"([\\d]{10})\" \\/>[\\s\\S]*<input type=\"hidden\" name=\"form_token\" value=\"([\\d\\w]{40})\" \\/>[\\s\\S]*$");
|
|
||||||
Matcher matcher = pattern.matcher(reqBody);
|
|
||||||
if (!matcher.find()) {
|
|
||||||
logger.error("Could not find CSRF tokens in posting form for forum " + forumId);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
String creationTime = matcher.group(1);
|
|
||||||
String formToken = matcher.group(2);
|
|
||||||
|
|
||||||
Map<String, String> postParameters = new HashMap<>();
|
|
||||||
postParameters.put("subject", subject);
|
|
||||||
postParameters.put("message", message);
|
|
||||||
postParameters.put("creation_time", creationTime);
|
|
||||||
postParameters.put("form_token", formToken);
|
|
||||||
postParameters.put("post", "Absenden");
|
|
||||||
postParameters.put("attach_sig", "1");
|
|
||||||
postParameters.put("enable_bbcode", "1");
|
|
||||||
postParameters.put("enable_smilies", "1");
|
|
||||||
postParameters.put("enable_magic_url", "1");
|
|
||||||
|
|
||||||
String postForm = postParameters.entrySet()
|
|
||||||
.stream()
|
|
||||||
.map(e -> e.getKey() + "=" + URLEncoder.encode(e.getValue(), StandardCharsets.UTF_8))
|
|
||||||
.collect(Collectors.joining("&"));
|
|
||||||
|
|
||||||
HttpRequest postReq = HttpRequest.newBuilder()
|
|
||||||
.uri(URI.create(url))
|
|
||||||
.headers("Content-Type", "application/x-www-form-urlencoded")
|
|
||||||
.POST(HttpRequest.BodyPublishers.ofString(postForm))
|
|
||||||
.build();
|
|
||||||
|
|
||||||
try {
|
|
||||||
TimeUnit.SECONDS.sleep(1);
|
|
||||||
HttpResponse<String> response = client.send(postReq, HttpResponse.BodyHandlers.ofString());
|
|
||||||
if (response.statusCode() == 302) {
|
|
||||||
logger.info("Created post '" + subject + "' in forum " + forumId);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
logger.error("Failed to create post '" + subject + "' in forum " + forumId + ". Status: " + response.statusCode());
|
|
||||||
return false;
|
|
||||||
} catch (IOException | InterruptedException e) {
|
|
||||||
logger.error("Failed to create post", e);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private String getSidFromCookie() {
|
private String getSidFromCookie() {
|
||||||
HttpCookie sidCookie = cookieStore.getCookies().get(2);
|
HttpCookie sidCookie = cookieStore.getCookies().get(2);
|
||||||
String sid = sidCookie.getValue();
|
String sid = sidCookie.getValue();
|
||||||
|
|||||||
@@ -1528,50 +1528,5 @@
|
|||||||
"teamname": "Tunisia",
|
"teamname": "Tunisia",
|
||||||
"tippligaID": 710,
|
"tippligaID": 710,
|
||||||
"apiFootballID": 28
|
"apiFootballID": 28
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "SC St. Tönis",
|
|
||||||
"tippligaID": 673,
|
|
||||||
"apiFootballID": 19466
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "Lüneburger SK Hansa",
|
|
||||||
"tippligaID": 76,
|
|
||||||
"apiFootballID": 1645
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "Eintracht Trier",
|
|
||||||
"tippligaID": 46,
|
|
||||||
"apiFootballID": 1627
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "SSV Jeddeloh",
|
|
||||||
"tippligaID": 124,
|
|
||||||
"apiFootballID": 1655
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "Krieschow",
|
|
||||||
"tippligaID": 675,
|
|
||||||
"apiFootballID": 14713
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "Westfalia Rhynern",
|
|
||||||
"tippligaID": 676,
|
|
||||||
"apiFootballID": 14826
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "HEBC",
|
|
||||||
"tippligaID": 677,
|
|
||||||
"apiFootballID": 16078
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "Fortuna Köln",
|
|
||||||
"tippligaID": 583,
|
|
||||||
"apiFootballID": 1326
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"teamname": "NEXT TEAM",
|
|
||||||
"tippligaID": 674,
|
|
||||||
"apiFootballID": 9999999
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -288,10 +288,5 @@
|
|||||||
"team_id": 2139,
|
"team_id": 2139,
|
||||||
"team_name": "Dustin",
|
"team_name": "Dustin",
|
||||||
"team_name_short": "Dustin"
|
"team_name_short": "Dustin"
|
||||||
},
|
|
||||||
{
|
|
||||||
"team_id": 2140,
|
|
||||||
"team_name": "Marcel W.",
|
|
||||||
"team_name_short": "Marcel W."
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,58 +0,0 @@
|
|||||||
{
|
|
||||||
"numberOfMatchdays": 1,
|
|
||||||
"matchesPerMatchday": 4,
|
|
||||||
"pointMode": 4,
|
|
||||||
"pointsTendency": 1,
|
|
||||||
"pointsDifference": 2,
|
|
||||||
"pointsDirectHit": 3,
|
|
||||||
"ko": 1,
|
|
||||||
"matchdayConfig": [
|
|
||||||
{
|
|
||||||
"TLWMatchday": 1,
|
|
||||||
"matchdayName": "Relegation",
|
|
||||||
"numberOfMatches": 4,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 35,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-05-27 20:30:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-05-31 20:30:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 79,
|
|
||||||
"leagueMatchday": 35,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-05-28 20:30:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-06-01 20:30:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
"numberOfMatchdays": 2,
|
|
||||||
"matchesPerMatchday": 4,
|
|
||||||
"pointMode": 4,
|
|
||||||
"pointsTendency": 1,
|
|
||||||
"pointsDifference": 2,
|
|
||||||
"pointsDirectHit": 3,
|
|
||||||
"ko": 1,
|
|
||||||
"matchdayConfig": [
|
|
||||||
{
|
|
||||||
"TLWMatchday": 1,
|
|
||||||
"matchdayName": "Supercup",
|
|
||||||
"numberOfMatches": 4,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"matchday": 1,
|
|
||||||
"matchtime": "2026-08-22 20:30",
|
|
||||||
"match": "Borussia Dortmund - Bayern München",
|
|
||||||
"showTable": false,
|
|
||||||
"matchLeague": 529,
|
|
||||||
"type": "SingleMatch",
|
|
||||||
"matchId": 1582362
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"matchday": 1,
|
|
||||||
"matchtime": "2026-08-22 20:30",
|
|
||||||
"match": "Borussia Dortmund - Bayern München",
|
|
||||||
"showTable": false,
|
|
||||||
"matchLeague": 529,
|
|
||||||
"type": "SingleMatch",
|
|
||||||
"matchId": 1582362
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"matchday": 1,
|
|
||||||
"matchtime": "2026-08-12 21:00",
|
|
||||||
"match": "Paris Saint Germain - Aston Villa",
|
|
||||||
"showTable": false,
|
|
||||||
"matchLeague": 531,
|
|
||||||
"type": "SingleMatch",
|
|
||||||
"matchId": 1583664
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"matchday": 1,
|
|
||||||
"matchtime": "2026-08-12 21:00",
|
|
||||||
"match": "Paris Saint Germain - Aston Villa",
|
|
||||||
"showTable": false,
|
|
||||||
"matchLeague": 531,
|
|
||||||
"type": "SingleMatch",
|
|
||||||
"matchId": 1583664
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"1": "Sascha",
|
|
||||||
"2": "Stefan"
|
|
||||||
}
|
|
||||||
@@ -1,434 +0,0 @@
|
|||||||
{
|
|
||||||
"numberOfMatchdays": 39,
|
|
||||||
"matchesPerMatchday": 12,
|
|
||||||
"pointMode": 4,
|
|
||||||
"pointsTendency": 1,
|
|
||||||
"pointsDifference": 2,
|
|
||||||
"pointsDirectHit": 3,
|
|
||||||
"ko": 0,
|
|
||||||
"matchdayConfig": [
|
|
||||||
{
|
|
||||||
"TLWMatchday": 1,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 79,
|
|
||||||
"leagueMatchday": 1,
|
|
||||||
"showTable": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 2,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 79,
|
|
||||||
"leagueMatchday": 2,
|
|
||||||
"showTable": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 3,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 1,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 4,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 2,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 5,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 3,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 6,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 4,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 7,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 5,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 8,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 6,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 9,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 7,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 10,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 8,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 11,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 9,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 12,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 10,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 13,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 11,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 14,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 12,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 15,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 13,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 16,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 14,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 17,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2026-12-26 18:00:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 18,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 15,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 19,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 16,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 20,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 17,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 21,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 18,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 22,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 19,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 23,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 20,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 24,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 21,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 25,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 22,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 26,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 23,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 27,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 24,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 28,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 25,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 29,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 26,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 30,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2027-03-17 18:00:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 31,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 27,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 32,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 28,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 33,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 29,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 34,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2027-04-14 18:00:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 35,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 30,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 36,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 31,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 37,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 32,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 38,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 33,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 39,
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 78,
|
|
||||||
"leagueMatchday": 34,
|
|
||||||
"showTable": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"1": "Flo",
|
|
||||||
"2": "Michael",
|
|
||||||
"3": "Demian",
|
|
||||||
"4": "Sascha",
|
|
||||||
"5": "Maxi Z.",
|
|
||||||
"6": "Julian",
|
|
||||||
"7": "Dustin",
|
|
||||||
"8": "Kay",
|
|
||||||
"9": "Lukas",
|
|
||||||
"10": "Marcel U.",
|
|
||||||
"11": "TG Nürnberg",
|
|
||||||
"12": "Nicole",
|
|
||||||
"13": "Franz",
|
|
||||||
"14": "Tristan"
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"1": "Philipp",
|
|
||||||
"2": "Marcel",
|
|
||||||
"3": "Matthias",
|
|
||||||
"4": "Max",
|
|
||||||
"5": "Marcel W.",
|
|
||||||
"6": "Friedrich",
|
|
||||||
"7": "Stefan",
|
|
||||||
"8": "Armin",
|
|
||||||
"9": "Barb",
|
|
||||||
"10": "Hilde",
|
|
||||||
"11": "Olli L.",
|
|
||||||
"12": "Jimmy",
|
|
||||||
"13": "Johannes",
|
|
||||||
"14": "Patrick"
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 1, '1. Tippliga Würzburg', '1TL', 1, 39, 12, '0', '0', '0', '0', 4, 3, 1, 2, 0, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 2, '2. Tippliga Würzburg', '2TL', 1, 39, 12, '0', '0', '0', '0', 4, 3, 1, 2, 0, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 45, 'Supercup', 'SC', 2, 1, 0, '0', '0', '0', '0', 4, 3, 1, 2, 0, 0, 0, 1, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 47, 'Relegation', 'REL', 2, 1, 0, '0', '0', '0', '0', 4, 3, 1, 2, 0, 0, 0, 1, 561, 0, 1, 0.00, 1);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 48, 'WTL-Pokal', 'WTL', 2, 5, 0, '0', '0', '0', '0', 4, 3, 1, 2, 0, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 51, '1. Tippliga Würzburg', '1TL', 1, 39, 7, '0', '0', '0', '0', 1, 0, 0, 0, 1, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 52, '2. Tippliga Würzburg', '2TL', 1, 39, 7, '0', '0', '0', '0', 1, 0, 0, 0, 1, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 95, 'Supercup', 'SC', 2, 2, 0, '0', '0', '0', '0', 1, 0, 0, 0, 1, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 97, 'Relegation', 'REL', 2, 1, 0, '0', '0', '0', '0', 1, 0, 0, 0, 1, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
INSERT INTO `phpbb_footb_leagues` (`season`, `league`, `league_name`, `league_name_short`, `league_type`, `matchdays`, `matches_on_matchday`, `win_result`, `win_result_02`, `win_matchday`, `win_season`, `points_mode`, `points_result`, `points_tendency`, `points_diff`, `points_last`, `join_by_user`, `join_in_season`, `bet_in_time`, `rules_post_id`, `sort`, `bet_ko_type`, `bet_points`, `bet_type`) VALUES (2027, 98, 'WTL-Pokal', 'WTL', 2, 6, 0, '0', '0', '0', '0', 1, 0, 0, 0, 1, 0, 0, 0, 561, 0, 1, 0.00, 0);
|
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
{
|
|
||||||
"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": 81,
|
|
||||||
"leagueMatchday": 1,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2026-08-21 18:00:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 2,
|
|
||||||
"numberOfMatches": 16,
|
|
||||||
"matchdayName": "Achtelfinale",
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 2,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2026-10-27 18:00:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 3,
|
|
||||||
"numberOfMatches": 8,
|
|
||||||
"matchdayName": "Viertelfinale",
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 3,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2026-12-01 18:30:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 4,
|
|
||||||
"numberOfMatches": 4,
|
|
||||||
"matchdayName": "Halbfinale",
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 4,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Placeholder",
|
|
||||||
"placeholderDatetime": "2027-02-02 18:30:00"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"TLWMatchday": 5,
|
|
||||||
"numberOfMatches": 6,
|
|
||||||
"matchdayName": "Finale",
|
|
||||||
"matchesConfig": [
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 5,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 5,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 6,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "AllMatchesOfMatchday",
|
|
||||||
"matchesLeague": 81,
|
|
||||||
"leagueMatchday": 6,
|
|
||||||
"showTable": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-04-20 20:45:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-04-20 20:45:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-04-21 20:45:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-04-21 20:45:00",
|
|
||||||
"formulaHome": "D",
|
|
||||||
"formulaGuest": "D"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-05-29 20:00:00",
|
|
||||||
"formulaHome": "W 61",
|
|
||||||
"formulaGuest": "W 63"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "PlaceholderSingleMatch",
|
|
||||||
"koMatch": true,
|
|
||||||
"placeholderDatetime": "2027-05-29 20:00:00",
|
|
||||||
"formulaHome": "W 62",
|
|
||||||
"formulaGuest": "W 64"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{
|
|
||||||
"1": "Matthias",
|
|
||||||
"2": "Marcel U.",
|
|
||||||
"3": "Marcel",
|
|
||||||
"4": "Dustin",
|
|
||||||
"5": "Johannes",
|
|
||||||
"6": "Tristan",
|
|
||||||
"7": "Philipp",
|
|
||||||
"8": "Nicole",
|
|
||||||
"9": "Barb",
|
|
||||||
"10": "TG Nürnberg",
|
|
||||||
"11": "Marcel W.",
|
|
||||||
"12": "Maxi Z.",
|
|
||||||
"13": "Olli L.",
|
|
||||||
"14": "Lukas",
|
|
||||||
"15": "Jimmy",
|
|
||||||
"16": "Franz",
|
|
||||||
"17": "Armin",
|
|
||||||
"18": "Demian",
|
|
||||||
"19": "Hilde",
|
|
||||||
"20": "Kay",
|
|
||||||
"21": "Patrick",
|
|
||||||
"22": "Flo",
|
|
||||||
"23": "Stefan",
|
|
||||||
"24": "Max"
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
UPDATE phpbb_footb_matchdays SET status = 0 WHERE season = 2027 AND status > 0;
|
|
||||||
UPDATE phpbb_footb_matches SET status = 0 WHERE season = 2027 AND status > 0;
|
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
package de.jeyp91.apifootball;
|
package de.jeyp91.apifootball;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class APIFootballConnectorTest {
|
public class APIFootballConnectorTest {
|
||||||
/*
|
|
||||||
@Test
|
@Test
|
||||||
public void APITestGetMatchDataOfMatchdayBundesliga() {
|
public void APITestGetMatchDataOfMatchdayBundesliga() {
|
||||||
APIFootballConnector apiFootballConnector = APIFootballConnector.getAPIFootballConnectorInstance(2020);
|
APIFootballConnector apiFootballConnector = APIFootballConnector.getAPIFootballConnectorInstance(2020);
|
||||||
@@ -13,5 +13,4 @@ public class APIFootballConnectorTest {
|
|||||||
assert matchesOfMatchday.get(0).getTeamIdHome() == 744;
|
assert matchesOfMatchday.get(0).getTeamIdHome() == 744;
|
||||||
assert matchesOfMatchday.get(0).getTeamIdGuest() == 159;
|
assert matchesOfMatchday.get(0).getTeamIdGuest() == 159;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import org.junit.Test;
|
|||||||
import static de.jeyp91.apifootball.APIFootballConnector.stringToJSONObject;
|
import static de.jeyp91.apifootball.APIFootballConnector.stringToJSONObject;
|
||||||
|
|
||||||
public class APIFootballMatchTest {
|
public class APIFootballMatchTest {
|
||||||
/*
|
|
||||||
@Test
|
@Test
|
||||||
public void withExtratime() throws Exception {
|
public void withExtratime() throws Exception {
|
||||||
String matchString = "{\"fixture_id\":958530,\"league_id\":4303,\"league\":{\"name\":\"DFB Pokal\",\"country\":\"Germany\",\"logo\":\"https:\\/\\/media-3.api-sports.io\\/football\\/leagues\\/81.png\",\"flag\":\"https:\\/\\/media-1.api-sports.io\\/flags\\/de.svg\"},\"event_date\":\"2022-10-19T18:00:00+02:00\",\"event_timestamp\":1666195200,\"firstHalfStart\":1666195200,\"secondHalfStart\":1666198800,\"round\":\"2nd Round\",\"status\":\"Match Finished\",\"statusShort\":\"PEN\",\"elapsed\":120,\"venue\":\"Home Deluxe Arena\",\"referee\":\"Frank Willenborg, Germany\",\"homeTeam\":{\"team_id\":185,\"team_name\":\"SC Paderborn 07\",\"logo\":\"https:\\/\\/media-2.api-sports.io\\/football\\/teams\\/185.png\"},\"awayTeam\":{\"team_id\":162,\"team_name\":\"Werder Bremen\",\"logo\":\"https:\\/\\/media-3.api-sports.io\\/football\\/teams\\/162.png\"},\"goalsHomeTeam\":2,\"goalsAwayTeam\":2,\"score\":{\"halftime\":\"2-0\",\"fulltime\":\"2-2\",\"extratime\":\"0-0\",\"penalty\":\"5-4\"}}";
|
String matchString = "{\"fixture_id\":958530,\"league_id\":4303,\"league\":{\"name\":\"DFB Pokal\",\"country\":\"Germany\",\"logo\":\"https:\\/\\/media-3.api-sports.io\\/football\\/leagues\\/81.png\",\"flag\":\"https:\\/\\/media-1.api-sports.io\\/flags\\/de.svg\"},\"event_date\":\"2022-10-19T18:00:00+02:00\",\"event_timestamp\":1666195200,\"firstHalfStart\":1666195200,\"secondHalfStart\":1666198800,\"round\":\"2nd Round\",\"status\":\"Match Finished\",\"statusShort\":\"PEN\",\"elapsed\":120,\"venue\":\"Home Deluxe Arena\",\"referee\":\"Frank Willenborg, Germany\",\"homeTeam\":{\"team_id\":185,\"team_name\":\"SC Paderborn 07\",\"logo\":\"https:\\/\\/media-2.api-sports.io\\/football\\/teams\\/185.png\"},\"awayTeam\":{\"team_id\":162,\"team_name\":\"Werder Bremen\",\"logo\":\"https:\\/\\/media-3.api-sports.io\\/football\\/teams\\/162.png\"},\"goalsHomeTeam\":2,\"goalsAwayTeam\":2,\"score\":{\"halftime\":\"2-0\",\"fulltime\":\"2-2\",\"extratime\":\"0-0\",\"penalty\":\"5-4\"}}";
|
||||||
@@ -20,5 +20,4 @@ public class APIFootballMatchTest {
|
|||||||
JSONObject matchJson = stringToJSONObject(matchString);
|
JSONObject matchJson = stringToJSONObject(matchString);
|
||||||
APIFootballMatch match = new APIFootballMatch(matchJson, 2023);
|
APIFootballMatch match = new APIFootballMatch(matchJson, 2023);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class APIFootballUpdaterTest {
|
public class APIFootballUpdaterTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
/*
|
|
||||||
@Test
|
@Test
|
||||||
public void checkErrorsTest() {
|
public void checkErrorsTest() {
|
||||||
String rateLimitError = "{\"results\":0,\"errors\":{\"rateLimit\":\"Too many requests. Your rate limit is 10 requests per minute.\"}}";
|
String rateLimitError = "{\"results\":0,\"errors\":{\"rateLimit\":\"Too many requests. Your rate limit is 10 requests per minute.\"}}";
|
||||||
@@ -41,5 +41,4 @@ public class APIFootballUpdaterTest {
|
|||||||
APIFootballUpdater updater = new APIFootballUpdater();
|
APIFootballUpdater updater = new APIFootballUpdater();
|
||||||
updater.updateAllRounds(season);
|
updater.updateAllRounds(season);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
package de.jeyp91.openligadb;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
public class OpenLigaDBConnectorTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void APITestGetMatchDataOfMatchdayBundesliga() {
|
||||||
|
OpenLigaDBConnector openLigaDBConnector = new OpenLigaDBConnector();
|
||||||
|
ArrayList<OpenLigaDBMatch> matches = openLigaDBConnector.getMatchDataOfMatchday(2020, "bl1", 1);
|
||||||
|
|
||||||
|
assertEquals(9, matches.size());
|
||||||
|
|
||||||
|
OpenLigaDBMatch match;
|
||||||
|
|
||||||
|
match = matches.get(0);
|
||||||
|
assertEquals((Integer) 55277, match.getMatchId());
|
||||||
|
assertEquals((Integer) 40, match.getTeamIdHome());
|
||||||
|
assertEquals((Integer) 54, match.getTeamIdGuest());
|
||||||
|
assertEquals((Integer) 2020, match.getSeason());
|
||||||
|
assertEquals("2019-08-16T20:30:00", match.getMatchDateTime());
|
||||||
|
assertEquals((Integer) 1, match.getMatchday());
|
||||||
|
assertEquals((Integer) 2, match.getGoalsHome());
|
||||||
|
assertEquals((Integer) 2, match.getGoalsGuest());
|
||||||
|
assertTrue(match.getMatchIsFinished());
|
||||||
|
|
||||||
|
match = matches.get(1);
|
||||||
|
assertEquals((Integer) 55278, match.getMatchId());
|
||||||
|
assertEquals((Integer) 7, match.getTeamIdHome());
|
||||||
|
assertEquals((Integer) 95, match.getTeamIdGuest());
|
||||||
|
assertEquals((Integer) 2020, match.getSeason());
|
||||||
|
assertEquals("2019-08-17T15:30:00", match.getMatchDateTime());
|
||||||
|
assertEquals((Integer) 1, match.getMatchday());
|
||||||
|
assertEquals((Integer) 5, match.getGoalsHome());
|
||||||
|
assertEquals((Integer) 1, match.getGoalsGuest());
|
||||||
|
assertTrue(match.getMatchIsFinished());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void APITestGetMatchDataOfMatchdayDFBPokal() {
|
||||||
|
OpenLigaDBConnector openLigaDBConnector = new OpenLigaDBConnector();
|
||||||
|
ArrayList<OpenLigaDBMatch> matches = openLigaDBConnector.getMatchDataOfMatchday(2020, "dfb2019", 1);
|
||||||
|
|
||||||
|
assert matches.size() == 32;
|
||||||
|
|
||||||
|
OpenLigaDBMatch match = matches.get(0);
|
||||||
|
assertEquals((Integer) 54926, match.getMatchId());
|
||||||
|
assertEquals((Integer) 563, match.getTeamIdHome());
|
||||||
|
assertEquals((Integer) 7, match.getTeamIdGuest());
|
||||||
|
assertEquals((Integer) 2020, match.getSeason());
|
||||||
|
assertEquals("2019-08-09T20:45:00", match.getMatchDateTime());
|
||||||
|
assertEquals((Integer) 1, match.getMatchday());
|
||||||
|
assertEquals((Integer) 0, match.getGoalsHome());
|
||||||
|
assertEquals((Integer) 2, match.getGoalsGuest());
|
||||||
|
assertTrue(match.getMatchIsFinished());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void APITestGetMatchDataOfSingleMatch() {
|
||||||
|
OpenLigaDBConnector openLigaDBConnector = new OpenLigaDBConnector();
|
||||||
|
OpenLigaDBMatch match = openLigaDBConnector.getMatchDataOfSingleMatch(55583);
|
||||||
|
assertEquals((Integer) 55583, match.getMatchId());
|
||||||
|
assertEquals((Integer) 16, match.getTeamIdHome());
|
||||||
|
assertEquals((Integer) 55, match.getTeamIdGuest());
|
||||||
|
assertEquals((Integer) 2020, match.getSeason());
|
||||||
|
assertEquals("2019-07-26T20:30:00", match.getMatchDateTime());
|
||||||
|
assertEquals((Integer) 1, match.getMatchday());
|
||||||
|
assertEquals((Integer) 2, match.getGoalsHome());
|
||||||
|
assertEquals((Integer) 1, match.getGoalsGuest());
|
||||||
|
assertTrue(match.getMatchIsFinished());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,7 +7,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWMatchdaysCreatorTest {
|
public class TLWMatchdaysCreatorTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchdaysTippligaTest() {
|
public void getMatchdaysTippligaTest() {
|
||||||
@@ -90,19 +90,11 @@ public class TLWMatchdaysCreatorTest {
|
|||||||
System.out.println(sql);
|
System.out.println(sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void getMatchdaysRelegationSqlTest() {
|
|
||||||
|
|
||||||
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(season, 47, "Relegation");
|
|
||||||
String sql = matchdaysCreator.getMatchdaysSQL();
|
|
||||||
System.out.println(sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchdaysEMTippspielSqlTest() {
|
public void getMatchdaysEMTippspielSqlTest() {
|
||||||
|
|
||||||
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(2021, 49, "EM-Tippspiel");
|
TLWMatchdaysCreator matchdaysCreator = new TLWMatchdaysCreator(2021, 49, "EM-Tippspiel");
|
||||||
String sql = matchdaysCreator.getMatchdaysSQL();
|
String sql = matchdaysCreator.getMatchdaysSQL();
|
||||||
System.out.println(sql);
|
// System.out.println(sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
package de.jeyp91.tippliga;
|
package de.jeyp91.tippliga;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
public class TLWMatchesCreatorFootballTest {
|
public class TLWMatchesCreatorFootballTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesTest() {
|
public void getMatchesTest() {
|
||||||
@@ -48,9 +49,9 @@ public class TLWMatchesCreatorFootballTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesRelegationSqlTest() {
|
public void getMatchesEMTippspielSqlTest() {
|
||||||
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(season, 47, "Relegation");
|
TLWMatchesCreatorFootball creator = new TLWMatchesCreatorFootball(2021, 49, "EM-Tippspiel");
|
||||||
String sql = creator.getSQLInsertString();
|
String sql = creator.getSQLInsertString();
|
||||||
System.out.println(sql);
|
// System.out.println(sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWMatchesCreatorTipperPokalTest {
|
public class TLWMatchesCreatorTipperPokalTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesWTLPokalTest() {
|
public void getMatchesWTLPokalTest() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWMatchesCreatorTipperTest {
|
public class TLWMatchesCreatorTipperTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getMatchesTippliga1Test() {
|
public void getMatchesTippliga1Test() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWMatchesUpdaterFootballTest {
|
public class TLWMatchesUpdaterFootballTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
@Test
|
@Test
|
||||||
public void getUpdateSqlTest1() {
|
public void getUpdateSqlTest1() {
|
||||||
TLWMatchesUpdaterFootball updater = new TLWMatchesUpdaterFootball(season, 1, "Tippliga");
|
TLWMatchesUpdaterFootball updater = new TLWMatchesUpdaterFootball(season, 1, "Tippliga");
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class TLWTeamsCreatorTest {
|
public class TLWTeamsCreatorTest {
|
||||||
|
|
||||||
int season = 2027;
|
int season = 2026;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getTeamsTippligaFootball1Test() {
|
public void getTeamsTippligaFootball1Test() {
|
||||||
|
|||||||
Reference in New Issue
Block a user