Various improvements
All checks were successful
Gitea/swiss-backend/pipeline/head This commit looks good

This commit is contained in:
2025-08-25 23:37:35 +02:00
parent 83c9b53330
commit e89a7d4bff
15 changed files with 133 additions and 32 deletions

View File

@@ -64,6 +64,7 @@ public class TournamentDivideService {
event.getGroups().add(group);
} else {
var groups = getGroups(registrations, event.getType());
groups.forEach(group -> group.setEvent(event));
event.getGroups().addAll(groups);
}
}
@@ -146,7 +147,7 @@ nextRegistration:
var team = new Team();
team.setPlayer1(registration.getPlayer());
team.setPlayer2(registration.getPartner());
team.setGroup(group);
team.setGroups(List.of(group));
return team;
}