mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-29 04:50:20 +00:00
Fixes all refreshes showing notification for pending setup.
This commit is contained in:
parent
b3534833d7
commit
95ac700b3c
1 changed files with 6 additions and 6 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue