From 22afe7e5559eb4848b8f0c9652b8c75d0467052c Mon Sep 17 00:00:00 2001 From: jain Date: Thu, 10 Aug 2023 15:43:31 +0530 Subject: [PATCH] current page update in article api --- guardian/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guardian/views.py b/guardian/views.py index c17c95b..2194f4b 100644 --- a/guardian/views.py +++ b/guardian/views.py @@ -275,7 +275,7 @@ class TopJuniorListAPIView(viewsets.ModelViewSet): junior.position = index + 1 send_notification.delay(LEADERBOARD_RANKING, None, junior.junior.auth.id, {}) junior.save() - serializer = self.get_serializer(junior_total_points[:15], many=True) + serializer = self.get_serializer(junior_total_points[:NUMBER['fifteen']], many=True) return custom_response(None, serializer.data, response_status=status.HTTP_200_OK) except Exception as e: return custom_error_response(str(e), response_status=status.HTTP_400_BAD_REQUEST)