Fix small bug

This commit is contained in:
2025-04-19 17:12:05 +02:00
parent dd62417977
commit c6f070bdab
2 changed files with 11 additions and 9 deletions

View File

@@ -25,6 +25,9 @@ public class MatchesListForumUpdater {
public void updateLeague(int season, int league) {
MatchesListCreator creator = new MatchesListCreator(season, league);
if(creator.getMatches().isEmpty()) {
return;
}
String content = creator.getMatchesBeautiful();
String contentWithCodeBBCode = "<r><CODE><s>[code]</s>" + content + "<e>[/code]</e></CODE></r>";
Integer postId = getPostId(season, creator.getCountry(), creator.getLeagueName());