poprawka rankingu testów

This commit is contained in:
yetju000 2019-12-08 19:07:33 +01:00
parent 1edd16a29e
commit b36fa50cef
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ public class GroupService {
float score = 0;
LeaderboardDTO user = new LeaderboardDTO();
for (UserActivity a : m.getUser().getActivityTo()) {
if(a.getType() == "solvedTest")
if(a.getType().equalsIgnoreCase("solvedTest"))
score += a.getPoints();
}
user.setUsername(m.getUser().getUsername());