From c8557fc19692d3c644c4b4297ea257c51c8a74db Mon Sep 17 00:00:00 2001 From: KyryloKireiev Date: Thu, 20 Jun 2024 11:09:58 +0300 Subject: [PATCH] refactor: [AXM-749] Rename class which works with storage --- openedx/features/offline_mode/storage_management.py | 2 +- openedx/features/offline_mode/tasks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openedx/features/offline_mode/storage_management.py b/openedx/features/offline_mode/storage_management.py index 0bec0341d614..2811485695b7 100644 --- a/openedx/features/offline_mode/storage_management.py +++ b/openedx/features/offline_mode/storage_management.py @@ -20,7 +20,7 @@ log = logging.getLogger(__name__) -class OfflineContentStorageManager: +class OfflineContentGenerator: """ Creates zip file with Offline Content in the media storage. """ diff --git a/openedx/features/offline_mode/tasks.py b/openedx/features/offline_mode/tasks.py index beea85e1421e..224840fc07d3 100644 --- a/openedx/features/offline_mode/tasks.py +++ b/openedx/features/offline_mode/tasks.py @@ -10,7 +10,7 @@ from .constants import MAX_RETRY_ATTEMPTS, OFFLINE_SUPPORTED_XBLOCKS, RETRY_BACKOFF_INITIAL_TIMEOUT from .renderer import XBlockRenderer -from .storage_management import OfflineContentStorageManager +from .storage_management import OfflineContentGenerator @shared_task @@ -42,4 +42,4 @@ def generate_offline_content_for_block(block_id, html_data): """ block_usage_key = UsageKey.from_string(block_id) xblock = modulestore().get_item(block_usage_key) - OfflineContentStorageManager(xblock, html_data).generate_offline_content() + OfflineContentGenerator(xblock, html_data).generate_offline_content()