forked from External/mage
Tournaments status is updated now and if tournament finished, it's moved to the lower finished matches view.
This commit is contained in:
parent
095c3c5776
commit
402f7fffd9
12 changed files with 89 additions and 24 deletions
|
|
@ -75,7 +75,11 @@ public class TableView implements Serializable {
|
|||
games.add(game.getId());
|
||||
}
|
||||
} else {
|
||||
this.additionalInfo = new StringBuilder("Seats: ").append(table.getTournament().getPlayers().size()).append("/").append(table.getNumberOfSeats()).toString();
|
||||
StringBuilder sb = new StringBuilder("Seats: ").append(table.getTournament().getPlayers().size()).append("/").append(table.getNumberOfSeats());
|
||||
if (table.getState().equals(TableState.DUELING)) {
|
||||
sb.append(" - Running round: ").append(table.getTournament().getRounds().size());
|
||||
}
|
||||
this.additionalInfo = sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue