mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-08 11:00:39 +00:00
totals urls and views
This commit is contained in:
1 parent
2dc99c24b9
commit
7f9e676b57
2 files changed
+9
-3
No files matched your search
+2
-2
@@ -110,7 +110,7 @@ class TopAssistsBySeasonTotalsList(generics.ListAPIView):
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerTotalsData.objects.filter(season=season)
|
||||
return PlayerTotalsData.objects.filter(season=season).order_by('-AST')[:20]
|
||||
|
||||
|
||||
# Fetch Top 20 players by TRB DESC for season specified.
|
||||
@@ -212,7 +212,7 @@ class TopDefensiveReboundsBySeasonTotalsList(generics.ListAPIView):
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerTotalsDataSerializer.objects.filter(season=season).order_by('-DRB')[:20]
|
||||
return PlayerTotalsData.objects.filter(season=season).order_by('-DRB')[:20]
|
||||
|
||||
# PTS Histogram
|
||||
|
||||
|
||||
Reference in new issue
Block a user