From b910dc750e811f8a6e2f008ea8c29e983a95bd2c Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Wed, 7 Aug 2024 14:32:29 -0700 Subject: [PATCH] Serve monthly statistics by default --- pkg/server/server_full.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/server/server_full.go b/pkg/server/server_full.go index d6785e3..a99d1b3 100644 --- a/pkg/server/server_full.go +++ b/pkg/server/server_full.go @@ -60,8 +60,8 @@ func (s *server) listenWebSocket(address string) { m.HandleFunc("/leaderboard-rated-acey-multi.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantAceyDeucey, true)) m.HandleFunc("/leaderboard-rated-tabula-single.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantTabula, false)) m.HandleFunc("/leaderboard-rated-tabula-multi.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantTabula, true)) - m.HandleFunc("/stats.json", s.handleStatsFunc(0)) - m.HandleFunc("/stats-month.json", s.handleStatsFunc(1)) + m.HandleFunc("/stats.json", s.handleStatsFunc(1)) + m.HandleFunc("/stats-day.json", s.handleStatsFunc(0)) m.HandleFunc("/stats-total.json", s.handleStatsFunc(2)) m.HandleFunc("/stats-tabula.json", s.handleStatsFunc(3)) m.HandleFunc("/stats-wildbg.json", s.handleStatsFunc(4))