diff --git a/api/leaderboard/leaderboard_view.py b/api/leaderboard/leaderboard_view.py index 2210043f..24861718 100644 --- a/api/leaderboard/leaderboard_view.py +++ b/api/leaderboard/leaderboard_view.py @@ -71,16 +71,10 @@ def get(self, request): ) .order_by("-total_karma")[:20] ) - data = [ - { - "full_name": student.full_name, - "total_karma": student.total_karma, - "institution": student.institution, - } - for student in student_monthly_leaderboard - ] - return CustomResponse(response=data).get_success_response() + return CustomResponse( + response=student_monthly_leaderboard + ).get_success_response() class CollegeLeaderboard(APIView):