Skip to content

Commit

Permalink
Add RSVP response counts to JSON feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Jan 30, 2025
1 parent c9d059e commit 59e8986
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ps_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ def json(self):
"location": self.location,
"address": self.address,
"coordinates": self.coords(),
"rsvp": self.attendance_issue_url,
"rsvp_url": self.attendance_issue_url,
"rsvp_responses": {
"attending": len(self.get_attendance("+1")),
"interested": len(self.get_attendance("eyes")),
"not_attending": len(self.get_attendance("-1"))
}
}


Expand Down

0 comments on commit 59e8986

Please sign in to comment.