From b2d5e19b311725acd50c1d04aed118fb3e68b84c Mon Sep 17 00:00:00 2001 From: dekzter Date: Fri, 11 Apr 2025 17:06:20 -0400 Subject: [PATCH] fixed is_active flag --- core/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tasks.py b/core/tasks.py index f6069e69..7e808310 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -68,7 +68,7 @@ def scan_and_process_files(): m3u_account, _ = M3UAccount.objects.get_or_create(file_path=filepath, defaults={ "name": filename, - "is_active": CoreSettings.get_auto_import_mapped_files(), + "is_active": True if CoreSettings.get_auto_import_mapped_files() == "true" else False, }) redis_client.set(redis_key, mtime, ex=REDIS_TTL) @@ -119,7 +119,7 @@ def scan_and_process_files(): epg_source, _ = EPGSource.objects.get_or_create(file_path=filepath, defaults={ "name": filename, "source_type": "xmltv", - "is_active": CoreSettings.get_auto_import_mapped_files(), + "is_active": True if CoreSettings.get_auto_import_mapped_files() == "true" else False, }) redis_client.set(redis_key, mtime, ex=REDIS_TTL)