Fix adding missing match

This commit is contained in:
Julian Arndt
2024-07-29 21:43:54 +02:00
parent 091f8730d0
commit a1fea88de6

View File

@@ -180,8 +180,9 @@ public class TLWMatchesUpdaterFootball extends TLWMatchesManagerBase {
if(!done) { if(!done) {
for (TLWMatch tlwMatch : tlwMatches) { for (TLWMatch tlwMatch : tlwMatches) {
if (tlwMatch.getTeamIdHome() == 0 && tlwMatch.getTeamIdGuest() == 0 if (tlwMatch.getTeamIdHome() == 0 && tlwMatch.getTeamIdGuest() == 0
&& Objects.equals(tlwMatch.getFormulaHome(), "") && (Objects.equals(tlwMatch.getFormulaHome(), "") || Objects.equals(tlwMatch.getFormulaHome(), "D"))
&& Objects.equals(tlwMatch.getFormulaGuest(), "")) { && (Objects.equals(tlwMatch.getFormulaGuest(), "") || Objects.equals(tlwMatch.getFormulaGuest(), "D"))
) {
tlwMatch.updateMatch(missingMatch); tlwMatch.updateMatch(missingMatch);
done = true; done = true;
break; break;