Skip to content

Commit b3254ab

Browse files
committed
wip
1 parent 0465036 commit b3254ab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

hasura/functions/tournaments/seed_stage.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ BEGIN
9696
SELECT tb.id, tb.round, tb."group", tb.match_number, tb.team_1_seed, tb.team_2_seed
9797
FROM tournament_brackets tb
9898
WHERE tb.tournament_stage_id = stage.id
99-
AND tb.round = 1
10099
AND COALESCE(tb.path, 'WB') = 'WB' -- never seed or mark byes on loser brackets
101100
AND (tb.team_1_seed IS NOT NULL OR tb.team_2_seed IS NOT NULL)
102101
ORDER BY tb."group" ASC, tb.match_number ASC
@@ -160,7 +159,7 @@ BEGIN
160159
SET tournament_team_id_1 = team_1_id,
161160
tournament_team_id_2 = team_2_id,
162161
bye = (team_1_id IS NULL OR team_2_id IS NULL)
163-
WHERE id = bracket.id;
162+
WHERE id = bracket.id and round = 1;
164163

165164
RAISE NOTICE ' Bracket %: Seed % (team %) vs Seed % (team %)',
166165
bracket.match_number,

0 commit comments

Comments
 (0)