Skip to content

Commit 5e0a327

Browse files
author
Thord Setsaas
committed
Exclude bye matches from overview
1 parent 130b655 commit 5e0a327

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Endpoints for getting player 170 statistics
1414
- Ensure that currenet player is set correctly on tournament playoffs
1515
- Don't include legs that hit max rounds as highest checkout
16+
- Exclude bye matches from all matches overview page
1617

1718
## [2.9.0] - 2025-04-06
1819
#### Feature

data/match.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func GetMatches() ([]*models.Match, error) {
190190
// GetMatchesCount returns count of all matches
191191
func GetMatchesCount() (int, error) {
192192
var count int
193-
err := models.DB.QueryRow(`SELECT count(m.id) FROM matches m WHERE m.created_at <= NOW()`).Scan(&count)
193+
err := models.DB.QueryRow(`SELECT count(m.id) FROM matches m WHERE m.created_at <= NOW() AND is_bye = 0`).Scan(&count)
194194
if err != nil {
195195
return -1, err
196196
}

0 commit comments

Comments
 (0)