mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Refactor to merge Match.Status and Match.Winner fields into one.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user