From 7cbdf655fe4c6dce0d16882d36c6d124aca942c5 Mon Sep 17 00:00:00 2001 From: Software Magico Date: Sun, 26 May 2024 11:22:28 +0200 Subject: [PATCH] Added score time --- .../java/com/softwaremagico/kt/html/lists/BlogExporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/kendo-tournament-pdf/src/main/java/com/softwaremagico/kt/html/lists/BlogExporter.java b/backend/kendo-tournament-pdf/src/main/java/com/softwaremagico/kt/html/lists/BlogExporter.java index 638c0a89b..67faef5d6 100644 --- a/backend/kendo-tournament-pdf/src/main/java/com/softwaremagico/kt/html/lists/BlogExporter.java +++ b/backend/kendo-tournament-pdf/src/main/java/com/softwaremagico/kt/html/lists/BlogExporter.java @@ -290,7 +290,7 @@ private String getScoreDiv(FightDTO fightDTO, int duel, int score, boolean leftT } final int scoreTime = getScoreTime(fightDTO, duel, score, leftTeam); return "
0 ? " title=\"Duration " + scoreTime + ""\">" : ">") + + (scoreTime > 0 ? " title=\"" + scoreTime + ""\">" : ">") + String.valueOf(scoreText.getPdfAbbreviation()).replace(" ", " ") + "
"; } @@ -301,7 +301,7 @@ private int getScoreTime(FightDTO fightDTO, int duel, int score, boolean leftTea if (leftTeam) { time = fightDTO.getDuels().get(duel).getCompetitor1ScoreTime().get(score); } else { - time = fightDTO.getDuels().get(duel).getCompetitor1ScoreTime().get(score); + time = fightDTO.getDuels().get(duel).getCompetitor2ScoreTime().get(score); } return time; } catch (Exception ignored) {