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

Method get_ids

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

Source from the content-addressed store, hash-verified

190
191 @action(detail=False, methods=["get"], url_path="ids")
192 def get_ids(self, request, *args, **kwargs):
193 # Get the filtered queryset
194 queryset = self.get_queryset()
195
196 # Apply filtering, search, and ordering
197 queryset = self.filter_queryset(queryset)
198
199 # Return only the IDs from the queryset
200 stream_ids = queryset.values_list("id", flat=True)
201
202 return JsonResponse(list(stream_ids), safe=False)
203
204 @extend_schema(
205 parameters=[

Callers

nothing calls this directly

Calls 1

get_querysetMethod · 0.95

Tested by

no test coverage detected