Improved user count record message.
This commit is contained in:
parent
96bf54514d
commit
05e2e2c096
1 changed files with 7 additions and 3 deletions
|
@ -161,17 +161,21 @@ public class ReviewStatsReporter
|
|||
|
||||
datas.sortByDate();
|
||||
ReviewData last = datas.getLastByMaxUserCount();
|
||||
if (currentUserCount < last.getUserCount())
|
||||
if (currentUserCount == last.getUserCount())
|
||||
{
|
||||
result = "Record de participation égalé.";
|
||||
}
|
||||
else if (currentUserCount < last.getUserCount())
|
||||
{
|
||||
result = "Pas de nouveau record de participation.";
|
||||
}
|
||||
else
|
||||
{
|
||||
result = "Nouveau record de participation.";
|
||||
result = "Nombre record de participants !";
|
||||
}
|
||||
|
||||
String lastRecordDate = last.getDate().format(DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy", Locale.FRENCH));
|
||||
result = String.format("%s Dernier record %d, le %s.", result, last.getUserCount(), lastRecordDate);
|
||||
result = String.format("%s Le dernier record de %d participants remonte au %s.", result, last.getUserCount(), lastRecordDate);
|
||||
|
||||
//
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue