Skip to content

Commit 130b655

Browse files
author
Thord Setsaas
committed
Don't include max round legs in highest checkout
1 parent a6c63a0 commit 130b655

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

data/tournament.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ func getHighestCheckoutsForTournament(tournamentID int) ([]*models.BestStatistic
608608
JOIN matches m on l.match_id = m.id
609609
WHERE l.winner_id = s.player_id
610610
AND s.leg_id IN (SELECT id FROM leg WHERE match_id IN (SELECT id FROM matches WHERE tournament_id = ?))
611+
AND s.checkout IS NOT NULL
611612
AND IFNULL(l.leg_type_id, m.match_type_id) = 1 -- X01
612613
GROUP BY s.player_id, s.id
613614
ORDER BY checkout DESC, l.end_time) checkouts

0 commit comments

Comments
 (0)