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

@@ -137,7 +137,7 @@ func (web *Web) rankingsApiHandler(w http.ResponseWriter, r *http.Request) {
}
highestPlayedMatch := ""
for _, match := range matches {
if match.Status == "complete" {
if match.IsComplete() {
highestPlayedMatch = match.DisplayName
}
}