diff --git a/README.md b/README.md index a9301f5f..6add0cc9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager) [![GitHub last commit](https://img.shields.io/github/last-commit/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager) [![CircleCI](https://circleci.com/gh/softwaremagico/KendoTournamentManager.svg?style=shield)](https://circleci.com/gh/softwaremagico/KendoTournamentManager) -[![Time](https://img.shields.io/badge/development-622.5h-blueviolet.svg)]() +[![Time](https://img.shields.io/badge/development-623h-blueviolet.svg)]() [![Powered by](https://img.shields.io/badge/powered%20by%20java-orange.svg?logo=OpenJDK&logoColor=white)]() [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=kendo-tournament-backend&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=kendo-tournament-backend) 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 46399218..67faef5d 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 @@ -161,13 +161,13 @@ private void addScoreTables(StringBuilder stringBuilder, TournamentDTO tournamen String name; name = NameUtils.getLastnameName(competitor); columns.add(name); - columns.add(getFaults(fight, teamMember, true)); - columns.add(getScore(fight, teamMember, 1, true)); - columns.add(getScore(fight, teamMember, 0, true)); + columns.add(getFaultsDiv(fight, teamMember, true)); + columns.add(getScoreDiv(fight, teamMember, 1, true)); + columns.add(getScoreDiv(fight, teamMember, 0, true)); columns.add(getDrawFight(fight, teamMember)); - columns.add(getScore(fight, teamMember, 0, false)); - columns.add(getScore(fight, teamMember, 1, false)); - columns.add(getFaults(fight, teamMember, false)); + columns.add(getScoreDiv(fight, teamMember, 0, false)); + columns.add(getScoreDiv(fight, teamMember, 1, false)); + columns.add(getFaultsDiv(fight, teamMember, false)); // Team 2 competitor = fight.getTeam2().getMembers().get(teamMember); @@ -257,38 +257,67 @@ private String getDrawFight(FightDTO fightDTO, int duel) { // Draw Fights final String draw; if (fightDTO.getDuels().get(duel).getWinner() == 0 && fightDTO.isOver()) { - draw = String.valueOf(Score.DRAW.getPdfAbbreviation()); + return "