Refactor to merge Match.Status and Match.Winner fields into one.

This commit is contained in:
Patrick Fairbank
2020-03-29 00:04:15 -07:00
parent 14c9815980
commit df9c5dfbd9
20 changed files with 134 additions and 125 deletions

View File

@@ -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)