Skip to content

Commit 15d40ff

Browse files
committed
Clarify helper naming
1 parent 70e86da commit 15d40ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contentcuration/kolibri_public/utils/export_channel_to_kolibri_public.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
logger = logging.getLogger(__file__)
1717

1818

19-
class using_temp_migrated_database:
19+
class using_temp_migrated_content_database:
2020
"""
2121
A wrapper context manager for read-only access to a content database
2222
that might not have all current migrations applied. Works by copying
@@ -77,7 +77,7 @@ def export_channel_to_kolibri_public(
7777
else:
7878
db_storage_path = versioned_db_storage_path
7979

80-
with using_temp_migrated_database(db_storage_path):
80+
with using_temp_migrated_content_database(db_storage_path):
8181
channel = ExportedChannelMetadata.objects.get(id=channel_id)
8282
logger.info(
8383
"Found channel {} for id: {} mapping now".format(channel.name, channel_id)

0 commit comments

Comments
 (0)