Fight Odd Group Generation and Add Group on Export
Dieser Commit ist enthalten in:
Ursprung
fafee69216
Commit
2ca1d24530
@ -77,7 +77,7 @@ class GroupBracketGenerator extends HookConsumerWidget {
|
||||
List<List<List<List<int>>>> groupFights = [];
|
||||
final random = Random();
|
||||
for (final group in groups.value) {
|
||||
int rounds = group.length - 1;
|
||||
int rounds = group.length + (group.length % 2) - 1;
|
||||
List<List<List<int>>> groupFight = [];
|
||||
for (int i = 0; i < rounds; i++) {
|
||||
final availableTeams = group.toList();
|
||||
|
@ -30,13 +30,14 @@ Start,BlueTeam,RedTeam,WinnerTeam
|
||||
|
||||
Uri exportFights(List<EventFight> fights, String eventName) {
|
||||
List<List<String>> csv = [];
|
||||
csv.add(['Start', 'BlueTeam', 'RedTeam', 'WinnerTeam']);
|
||||
csv.add(['Start', 'BlueTeam', 'RedTeam', 'WinnerTeam', 'Group']);
|
||||
for (var fight in fights) {
|
||||
csv.add([
|
||||
fight.start.toString(),
|
||||
fight.blueTeam.name,
|
||||
fight.redTeam.name,
|
||||
fight.winner.name,
|
||||
fight.group ?? "Ungrouped"
|
||||
]);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren