mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
Tournament panel - Showing the number of rounds now only if tournament is swiss style tournament.
This commit is contained in:
parent
473c9e207b
commit
13ac2d0103
2 changed files with 5 additions and 8 deletions
|
|
@ -63,7 +63,11 @@ public class TournamentView implements Serializable {
|
|||
|
||||
tournamentName = tournament.getOptions().getName();
|
||||
|
||||
tournamentType = new StringBuilder(tournament.getOptions().getTournamentType()).append(" ").append(tournament.getNumberRounds()).append(" rounds").toString();
|
||||
if (tournament.getNumberRounds() > 0) {
|
||||
tournamentType = tournament.getOptions().getTournamentType() + " " + tournament.getNumberRounds()+ " rounds";
|
||||
} else {
|
||||
tournamentType = tournament.getOptions().getTournamentType();
|
||||
}
|
||||
startTime = tournament.getStartTime();
|
||||
endTime = tournament.getEndTime();
|
||||
stepStartTime = tournament.getStepStartTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue