mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-09 11:30:34 +00:00
top assists view
This commit is contained in:
1 parent
0ef688071d
commit
2241f2d485
2 files changed
+10
-1
No files matched your search
@@ -81,3 +81,11 @@ class ThreeTwoTopPointTrends(APIView):
|
||||
})
|
||||
|
||||
return Response(data)
|
||||
|
||||
# Fetch Top 20 players by AST DESC for season specified.
|
||||
class TopAssistsBySeasonList(generics.ListAPIView):
|
||||
serializer_class = PlayerDataSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
season = self.kwargs['season']
|
||||
return PlayerData.objects.filter(season=season).order_by('-AST')[:20]
|
||||
Reference in new issue
Block a user