mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Refactor to merge Match.Status and Match.Winner fields into one.
This commit is contained in:
@@ -30,7 +30,7 @@ func (web *Web) queueingDisplayHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
var upcomingMatches []model.Match
|
||||
for i, match := range matches {
|
||||
if match.Status == "complete" {
|
||||
if match.IsComplete() {
|
||||
continue
|
||||
}
|
||||
upcomingMatches = append(upcomingMatches, match)
|
||||
|
||||
Reference in New Issue
Block a user