Fix going count to only sum RSVPs, not claims + RSVPs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user