Skip to content

Commit

Permalink
returned categoryName in API
Browse files Browse the repository at this point in the history
  • Loading branch information
wderocco8 committed Aug 3, 2024
1 parent 0c02bc2 commit c416c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chalicelib/services/EventsRushService.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ def get_rush_category_analytics(self, category_id: str):
else:
attendees[email] = { **attendee, "eventsAttended": [new_event] }

result = { "categoryName": category["name"], "attendees": attendees }

return json.dumps(attendees, cls=self.BSONEncoder)
return json.dumps(result, cls=self.BSONEncoder)

events_rush_service = EventsRushService()

0 comments on commit c416c19

Please sign in to comment.