Skip to content

Commit

Permalink
more tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
ITJamie authored and mattLLVW committed Jun 26, 2022
1 parent 896c4a7 commit 0228bee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/views/salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class SaltReturnsListJid(generics.ListAPIView):

def get_queryset(self):
jid = self.kwargs["jid"]
queryset = SaltReturns.objects.all()
return queryset.filter(jid=jid).order_by("-alter_time")
queryset = SaltReturns.objects.filter(jid=jid).order_by("-alter_time")
return queryset


@api_view(["GET"])
Expand Down Expand Up @@ -97,5 +97,5 @@ class EventsViewSet(viewsets.ReadOnlyModelViewSet):
A simple ViewSet for viewing accounts.
"""

queryset = SaltEvents.objects.all().order_by("-alter_time")[:200]
queryset = SaltEvents.objects.all().order_by("-alter_time")[:50]
serializer_class = EventsSerializer

0 comments on commit 0228bee

Please sign in to comment.