From ae1b6a49f85f1f8d001532c31f381d6e2aba8ed1 Mon Sep 17 00:00:00 2001 From: nprasad2077 <114438461+nprasad2077@users.noreply.github.com> Date: Wed, 24 May 2023 21:54:33 -0500 Subject: [PATCH] updated top players limit --- nba_data/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nba_data/views.py b/nba_data/views.py index 7eaf587..b578574 100644 --- a/nba_data/views.py +++ b/nba_data/views.py @@ -62,7 +62,7 @@ class TopScorersbySeasonTotalsList(generics.ListAPIView): def get_queryset(self): season = self.kwargs['season'] - return PlayerTotalsData.objects.filter(season=season).order_by('-PTS')[:20] + return PlayerTotalsData.objects.filter(season=season).order_by('-PTS')[:200] # Fetch and calculate the average 3P made, 3P attemps, 2P made, 2P attempts for all players in each season.