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