Include full matches in matches.json

This commit is contained in:
Trevor Slocum 2024-08-07 14:50:15 -07:00
parent b910dc750e
commit 06085b69d0

View file

@ -113,7 +113,7 @@ func (s *server) cachedMatches() []byte {
var games []*bgammon.GameListing
for _, g := range s.games {
listing := g.listing(nil)
if listing == nil || listing.Password || listing.Players == 2 {
if listing == nil || listing.Password {
continue
}
games = append(games, listing)