Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vincevd1 committed Oct 22, 2024
1 parent 1f128de commit 6d2da87
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions website/orders/api/v1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ProductListAPIView,
ShiftRetrieveUpdateAPIView,
OrderVenueListAPIView,
OrderVenueActiveShiftAPIView
OrderVenueActiveShiftAPIView,
)
from orders.converters import ShiftConverter, OrderConverter

Expand All @@ -27,5 +27,9 @@
path("shifts/<shift:shift>/scanner/", ShiftScannerAPIView.as_view(), name="shifts_scanner"),
path("shifts/<shift:shift>/products/", ProductListAPIView.as_view(), name="product_list"),
path("order-venues/", OrderVenueListAPIView.as_view(), name="ordervenues_list"),
path("order-venues/<order_venue:order_venue>/active-shift", OrderVenueActiveShiftAPIView.as_view(), name="ordervenues_activeshift"),
path(
"order-venues/<order_venue:order_venue>/active-shift",
OrderVenueActiveShiftAPIView.as_view(),
name="ordervenues_activeshift",
),
]
1 change: 1 addition & 0 deletions website/orders/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class OrderVenueListAPIView(ListAPIView):
serializer_class = OrderVenueSerializer
queryset = OrderVenue.objects.all()


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

Expand Down
2 changes: 1 addition & 1 deletion website/status_screen/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
urlpatterns = [
path("redirect/<order_venue:venue>/", views.VenueRedirectView.as_view(), name="venue-redirect"),
path("<shift:shift>/", views.StatusScreen.as_view(), name="status"),
path("venue/<order_venue:order_venue>", views.VenueStatusScreen.as_view(), name="venue-status")
path("venue/<order_venue:order_venue>", views.VenueStatusScreen.as_view(), name="venue-status"),
]
3 changes: 2 additions & 1 deletion website/status_screen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get(self, request, **kwargs):
raise Http404()
else:
return redirect(reverse("status_screen:status", kwargs={"shift": shift}))



class VenueStatusScreen(View):
"""Show music and active shift status of a venue."""

Expand Down

0 comments on commit 6d2da87

Please sign in to comment.