Skip to content

Commit

Permalink
Fix linting again
Browse files Browse the repository at this point in the history
  • Loading branch information
vincevd1 committed Oct 22, 2024
1 parent 6d2da87 commit eed4bc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/orders/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,12 @@ class OrderVenueListAPIView(ListAPIView):


class OrderVenueActiveShiftAPIView(APIView):
"""API View to retrieve the active shift"""
"""API View to retrieve the active shift."""

serializer_class = ShiftSerializer

def get(self, request, **kwargs):
"""Get the active shift of an order venue if there is one, otherwise return 404."""
shift = currently_active_shift_for_venue(kwargs.get("order_venue"))

if shift:
Expand Down

0 comments on commit eed4bc3

Please sign in to comment.