Skip to content

Commit 21a5258

Browse files
committed
Issue 4: Don't return "no" RSVPs as attendees
1 parent a5686a4 commit 21a5258

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonkc_meetups/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def get_event_attendees(self, event_id):
142142
url = '{0}?{1}'.format(RSVPS_URL, query)
143143
data = self._http_get_json(url)
144144
rsvps = data['results']
145-
return [parse_member_from_rsvp(rsvp) for rsvp in rsvps]
145+
return [parse_member_from_rsvp(rsvp) for rsvp in rsvps
146+
if rsvp['response'] != "no"]
146147

147148
def get_event_photos(self, event_id):
148149
"""

0 commit comments

Comments
 (0)