mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-08 19:10:35 +00:00
add top ORB/DRB views and urls
This commit is contained in:
1 parent
38c37a3df2
commit
92cfd0af0f
2 files changed
+23
-1
No files matched your search
@@ -121,3 +121,23 @@ class TopStealsBySeasonList(generics.ListAPIView):
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerData.objects.filter(season=season).order_by('-STL')[:20]
|
||||
|
||||
# Fetch Top 20 players by ORB DESC for season.
|
||||
|
||||
|
||||
class TopOffensiveReboundsBySeasonList(generics.ListAPIView):
|
||||
serializer_class = PlayerDataSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerData.objects.filter(season=season).order_by('-ORB')[:20]
|
||||
|
||||
|
||||
# Fetch Top 20 players by DRB DESC for season.
|
||||
|
||||
class TopDefensiveReboundsBySeasonList(generics.ListAPIView):
|
||||
serializer_class = PlayerDataSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerData.objects.filter(season=season).order_by('-DRB')[:20]
|
||||
Reference in new issue
Block a user