mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Re-add the getHistory method.
This commit is contained in:
parent
1945e8eaa6
commit
a33aa5d2df
4 changed files with 12 additions and 3 deletions
|
|
@ -551,6 +551,11 @@ public class User {
|
|||
return "<not available>";
|
||||
}
|
||||
|
||||
public static String userStatsToHistory(ResultProtos.UserStatsProto proto) {
|
||||
return "Matches:" + userStatsToMatchHistory(proto) +
|
||||
" Tourneys: " + userStatsToTourneyHistory(proto);
|
||||
}
|
||||
|
||||
public static String userStatsToMatchHistory(ResultProtos.UserStatsProto proto) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(proto.getMatches());
|
||||
|
|
|
|||
|
|
@ -205,9 +205,9 @@ public class UserManager {
|
|||
if (userStats == null) {
|
||||
return "User " + userName + " not found";
|
||||
}
|
||||
return "History of user " + userName + ": " + User.userStatsToMatchHistory(userStats.getProto()) + " " + User.userStatsToTourneyHistory(userStats.getProto());
|
||||
return "History of user " + userName + ": " + User.userStatsToHistory(userStats.getProto());
|
||||
}
|
||||
return "History of user " + userName + ": " + user.getUserData().getMatchHistory() + " " + user.getUserData().getTourneyHistory();
|
||||
return "History of user " + userName + ": " + user.getUserData().getHistory();
|
||||
}
|
||||
|
||||
public void updateUserHistory() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue