MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get_ids

Method get_ids

apps/channels/api_views.py:1611–1622  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

1609
1610 @action(detail=False, methods=["get"], url_path="ids")
1611 def get_ids(self, request, *args, **kwargs):
1612 # Get the filtered queryset
1613 queryset = self.get_queryset()
1614
1615 # Apply filtering, search, and ordering
1616 queryset = self.filter_queryset(queryset)
1617
1618 # Return only the IDs from the queryset
1619 channel_ids = queryset.values_list("id", flat=True)
1620
1621 # JsonResponse skips DRF's renderer pipeline for a flat int list.
1622 return JsonResponse(list(channel_ids), safe=False)
1623
1624 @action(detail=False, methods=["get"], url_path="summary")
1625 def summary(self, request, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

get_querysetMethod · 0.95

Tested by

no test coverage detected