Minor formatting adjustment.

This commit is contained in:
SergeantPanda 2025-09-16 14:39:04 -05:00
parent 60e378b1ce
commit a846b09ad3
4 changed files with 7 additions and 8 deletions

View file

@ -796,7 +796,7 @@ class ChannelViewSet(viewsets.ModelViewSet):
def match_epg(self, request):
# Get channel IDs from request body if provided
channel_ids = request.data.get('channel_ids', [])
if channel_ids:
# Process only selected channels
from .tasks import match_selected_channels_epg
@ -806,7 +806,7 @@ class ChannelViewSet(viewsets.ModelViewSet):
# Process all channels without EPG (original behavior)
match_epg_channels.delay()
message = "EPG matching task initiated for all channels without EPG."
return Response(
{"message": message}, status=status.HTTP_202_ACCEPTED
)

View file

@ -551,7 +551,7 @@ def match_selected_channels_epg(channel_ids):
if not channels_without_epg.exists():
logger.info("No selected channels need EPG matching.")
# Send WebSocket update
channel_layer = get_channel_layer()
async_to_sync(channel_layer.group_send)(

View file

@ -1440,7 +1440,7 @@ export default class API {
static async matchEpg(channelIds = null) {
try {
const requestBody = channelIds ? { channel_ids: channelIds } : {};
const response = await request(
`${host}/api/channels/channels/match-epg/`,
{

View file

@ -306,10 +306,9 @@ const ChannelTableHeader = ({
onClick={matchEpg}
>
<Text size="xs">
{selectedTableIds.length > 0
? `Auto-Match (${selectedTableIds.length} selected)`
: 'Auto-Match EPG'
}
{selectedTableIds.length > 0
? `Auto-Match (${selectedTableIds.length} selected)`
: 'Auto-Match EPG'}
</Text>
</Menu.Item>