Skip to content

Commit

Permalink
refactor: [AXM-749] Rename class which works with storage
Browse files Browse the repository at this point in the history
  • Loading branch information
KyryloKireiev committed Jun 20, 2024
1 parent 67a71fb commit c8557fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openedx/features/offline_mode/storage_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
log = logging.getLogger(__name__)


class OfflineContentStorageManager:
class OfflineContentGenerator:
"""
Creates zip file with Offline Content in the media storage.
"""
Expand Down
4 changes: 2 additions & 2 deletions openedx/features/offline_mode/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

0 comments on commit c8557fc

Please sign in to comment.