Fix find event bug
This commit is contained in:
@@ -139,7 +139,7 @@ public class TippligaGoogleEventManager {
|
||||
String matchdayName = matchday.getMatchdayName().equals("") ? matchday.getMatchday().toString() + ". Spieltag" : matchday.getMatchdayName();
|
||||
String summary = TLWLeague.getLeagueNameCalendar(matchday.getLeague()) + " " + matchdayName + " tippen!";
|
||||
if(deliverDateNumber > 1) summary += " " + deliverDateNumber + ". Chance \uD83D\uDE43";
|
||||
String description = getDescription(matchday.getSeason(), matchday.getLeague() == 2 ? 1 : matchday.getLeague(), matchday.getMatchday(), deliverDateNumber);
|
||||
String description = getDescription(matchday.getSeason(), matchday.getLeague(), matchday.getMatchday(), deliverDateNumber);
|
||||
String location = "https://tippliga-wuerzburg.de/app.php/football/bet";
|
||||
|
||||
LocalDateTime deliveryLocalDateTime = LocalDateTime.parse(deliveryDateString.replace(" ", "T"));
|
||||
@@ -167,6 +167,7 @@ public class TippligaGoogleEventManager {
|
||||
}
|
||||
|
||||
private static String getDescription(Integer season, Integer league, Integer matchday, Integer deliverDateNumber) {
|
||||
league = league == 2 ? 1 : league;
|
||||
return "Saison: " + season + "\r\n" + "Liga: " + league + "\r\n" + "Spieltag: " + matchday + "\r\n" + "Abgabeschluss: " + deliverDateNumber;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user