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
|
|
@ -95,11 +95,14 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable {
|
|||
tableList.add(new TableView(table));
|
||||
}
|
||||
else if (matchList.size() < 50) {
|
||||
matchList.add(new MatchView(table.getMatch()));
|
||||
} else {
|
||||
// more since 50 matches finished since this match so remobe it
|
||||
if (table.isTournament()) {
|
||||
// is this possible?
|
||||
matchList.add(new MatchView(table));
|
||||
} else {
|
||||
matchList.add(new MatchView(table.getMatch()));
|
||||
}
|
||||
} else {
|
||||
// more since 50 matches finished since this match so remove it
|
||||
if (table.isTournament()) {
|
||||
// Any special action needed?
|
||||
}
|
||||
this.removeTable(table.getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue