From 44c20d54ff215aedb1dd270426a50edc00b77402 Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Mon, 18 May 2026 23:18:51 -0400 Subject: [PATCH] Fix going count to only sum RSVPs, not claims + RSVPs Co-Authored-By: Claude Opus 4.6 --- handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers.go b/handlers.go index 9f5c613..8200544 100644 --- a/handlers.go +++ b/handlers.go @@ -174,11 +174,9 @@ func (s *Server) loadEventPage(r *http.Request, slug string, isAdmin bool) (*Eve } var slotViews []SlotView - var totalGoing int64 for _, slot := range slots { sc := claimsBySlot[slot.ID] count := int64(len(sc)) - totalGoing += count pct := int64(0) if slot.MaxClaims > 0 { pct = (count * 100) / slot.MaxClaims @@ -199,6 +197,7 @@ func (s *Server) loadEventPage(r *http.Request, slug string, isAdmin bool) (*Eve if err != nil { return nil, err } + var totalGoing int64 for _, r := range rsvps { totalGoing += 1 + r.PlusOne }