Expose Matchup isComplete method in preparation for incorporating into bracket graphic

This commit is contained in:
unknown
2022-08-21 10:18:50 -07:00
committed by Patrick Fairbank
parent 0aa69340f0
commit 0eefc3ba40
2 changed files with 3 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ type allianceMatchup struct {
IsActive bool
SeriesLeader string
SeriesStatus string
IsComplete bool
}
// Generates a JSON dump of the matches and results.
@@ -250,6 +251,7 @@ func (web *Web) generateBracketSvg(w io.Writer) error {
DisplayName: matchup.LongDisplayName(),
RedAllianceSource: matchup.RedAllianceSourceDisplayName(),
BlueAllianceSource: matchup.BlueAllianceSourceDisplayName(),
IsComplete: matchup.IsComplete(),
}
if matchup.RedAllianceId > 0 {
if len(alliances) > 0 {