diff --git a/chalicelib/services/EventsRushService.py b/chalicelib/services/EventsRushService.py index a934afd..952c063 100644 --- a/chalicelib/services/EventsRushService.py +++ b/chalicelib/services/EventsRushService.py @@ -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() \ No newline at end of file