Skip to content

Commit

Permalink
Added score time
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaremagico committed May 26, 2024
1 parent 429da05 commit 7cbdf65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private String getScoreDiv(FightDTO fightDTO, int duel, int score, boolean leftT
}
final int scoreTime = getScoreTime(fightDTO, duel, score, leftTeam);
return "<div style=\"border-radius: 50%;border: 1px solid black; text-align: center;height=100%\""
+ (scoreTime > 0 ? " title=\"Duration " + scoreTime + "&quot;\">" : ">")
+ (scoreTime > 0 ? " title=\"" + scoreTime + "&quot;\">" : ">")
+ String.valueOf(scoreText.getPdfAbbreviation()).replace(" ", "&nbsp;")
+ "</div>";
}
Expand All @@ -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) {
Expand Down

0 comments on commit 7cbdf65

Please sign in to comment.