Fix placeholder same match detection

This commit is contained in:
2024-06-25 22:14:05 +02:00
parent dd0f8128a6
commit 163b313649

View File

@@ -4,14 +4,18 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Objects; import java.util.Objects;
import de.jeyp91.App;
import de.jeyp91.BaseMatch; import de.jeyp91.BaseMatch;
import de.jeyp91.teamidmatcher.TeamIDMatcher; import de.jeyp91.teamidmatcher.TeamIDMatcher;
import de.jeyp91.apifootball.APIFootballMatch; import de.jeyp91.apifootball.APIFootballMatch;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/** /**
* *
*/ */
public class TLWMatch extends BaseMatch{ public class TLWMatch extends BaseMatch{
private static final Logger logger = LogManager.getLogger(TLWMatch.class);
private Integer season = null; private Integer season = null;
private Integer league = null; private Integer league = null;
@@ -176,10 +180,7 @@ public class TLWMatch extends BaseMatch{
public String getFormulaHome() { public String getFormulaHome() {
String formula = "'D'"; String formula = "'D'";
if(this.teamIdHome != null && this.teamIdHome != 0) { if (this.formulaHome != null) {
return "''";
}
else if (this.formulaHome != null) {
formula = this.formulaHome; formula = this.formulaHome;
} }
return formula; return formula;
@@ -187,10 +188,7 @@ public class TLWMatch extends BaseMatch{
public String getFormulaGuest() { public String getFormulaGuest() {
String formula = "'D'"; String formula = "'D'";
if(this.teamIdGuest != null && this.teamIdGuest != 0) { if (this.formulaGuest != null) {
return "''";
}
else if (this.formulaGuest != null) {
formula = this.formulaGuest; formula = this.formulaGuest;
} }
return formula; return formula;