mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-06 18:10:39 +00:00
complete serializers
This commit is contained in:
1 parent
dc08bd9a9a
commit
47bd481069
3 files changed
+26
-1
No files matched your search
@@ -440,6 +440,14 @@ class TopScorersbySeasonListPlayoffs(generics.ListAPIView):
|
||||
return PlayerPlayoffTotalsData.objects.filter(season=season).order_by('-PTS')[:20]
|
||||
|
||||
|
||||
class TopAssistsBySeasonListPlayoffs(generics.ListAPIView):
|
||||
serializer_class = PlayerPlayoffTotalsDataSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerPlayoffTotalsData.objects.filter(season=season).order_by('-AST')[:20]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user