diff --git a/apps/m3u/tasks.py b/apps/m3u/tasks.py index 08410497..19172f85 100644 --- a/apps/m3u/tasks.py +++ b/apps/m3u/tasks.py @@ -547,15 +547,15 @@ def refresh_m3u_groups(account_id, use_cache=False, full_refresh=False): release_task_lock('refresh_m3u_account_groups', account_id) - # Use update() instead of save() to avoid triggering signals - M3UAccount.objects.filter(id=account_id).update( - status=M3UAccount.Status.PENDING_SETUP, - last_message="M3U groups loaded. Please select groups or refresh M3U to complete setup." - ) - send_m3u_update(account_id, "processing_groups", 100, status="pending_setup", message="M3U groups loaded. Please select groups or refresh M3U to complete setup.") if not full_refresh: + # Use update() instead of save() to avoid triggering signals + M3UAccount.objects.filter(id=account_id).update( + status=M3UAccount.Status.PENDING_SETUP, + last_message="M3U groups loaded. Please select groups or refresh M3U to complete setup." + ) + send_m3u_update(account_id, "processing_groups", 100, status="pending_setup", message="M3U groups loaded. Please select groups or refresh M3U to complete setup.") channel_layer = get_channel_layer() async_to_sync(channel_layer.group_send)( 'updates',