Split History column into Matches and Tourneys column.

This commit is contained in:
Me Car 2016-01-30 16:01:04 +09:00
parent fa5a098a14
commit 574e3cfd36
5 changed files with 91 additions and 90 deletions

View file

@ -114,13 +114,14 @@ public class GamesRoomImpl extends RoomImpl implements GamesRoom, Serializable {
List<UsersView> users = new ArrayList<>();
for (User user : UserManager.getInstance().getUsers()) {
try {
users.add(new UsersView(user.getUserData().getFlagName(), user.getName(), user.getHistory(), user.getGameInfo(), user.getPingInfo()));
users.add(new UsersView(user.getUserData().getFlagName(), user.getName(), user.getMatchHistory(), user.getTourneyHistory(), user.getGameInfo(), user.getPingInfo()));
} catch (Exception ex) {
logger.fatal("User update exception: " + user.getName() + " - " + ex.toString(), ex);
users.add(new UsersView(
(user.getUserData() != null && user.getUserData().getFlagName() != null) ? user.getUserData().getFlagName() : "world",
user.getName() != null ? user.getName() : "<no name>",
user.getHistory() != null ? user.getHistory() : "<no history>",
user.getMatchHistory() != null ? user.getMatchHistory() : "<no match history>",
user.getTourneyHistory() != null ? user.getTourneyHistory() : "<no tourney history>",
"[exception]",
user.getPingInfo() != null ? user.getPingInfo() : "<no ping>"));
}